mirror of
https://github.com/taigrr/systemctl.git
synced 2025-10-05 08:16:53 +08:00
check stderr before reporting back error 1
This commit is contained in:
@@ -17,4 +17,6 @@ var (
|
||||
|
||||
// ErrDoesNotExist means the unit specified doesn't exist or can't be found
|
||||
ErrDoesNotExist = errors.New("Unit does not exist")
|
||||
// ErrUnspecified means something in the stderr output contains the word `Failed`, but not a known case
|
||||
ErrUnspecified = errors.New("Unknown error")
|
||||
)
|
||||
|
Reference in New Issue
Block a user