check stderr before reporting back error 1

This commit is contained in:
Tai Groot
2021-05-14 16:55:17 -07:00
parent 2517125d98
commit feff1f6edd
5 changed files with 68 additions and 12 deletions

View File

@@ -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")
)