Add error comments

This commit is contained in:
Daniel 2020-11-24 16:15:22 +01:00
parent 9e2699aa31
commit dfa9e153fe

View file

@ -3,7 +3,10 @@ package osdetail
import "errors"
var (
// ErrNotSupported is returned when an operation is not supported on the current platform.
ErrNotSupported = errors.New("not supported")
ErrNotFound = errors.New("not found")
ErrEmptyOutput = errors.New("command succeeded with empty output")
// ErrNotFound is returned when the desired data is not found.
ErrNotFound = errors.New("not found")
// ErrEmptyOutput is a special error that is returned when an operation has no error, but also returns to data.
ErrEmptyOutput = errors.New("command succeeded with empty output")
)