Skip to content

Commit b4553e6

Browse files
committed
fix: wrap error with parameters in GetError method of ControlResult
1 parent f19d6c0 commit b4553e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/nginx/control.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package nginx
22

33
import (
4-
"errors"
54
"net/http"
65
"strings"
76

@@ -58,7 +57,7 @@ func (t *ControlResult) GetOutput() string {
5857
}
5958

6059
func (t *ControlResult) GetError() error {
61-
return errors.New(t.GetOutput())
60+
return cosy.WrapErrorWithParams(ErrNginx, t.GetOutput())
6261
}
6362

6463
func (t *ControlResult) GetLevel() int {

0 commit comments

Comments
 (0)