mirror of
https://github.com/safing/portbase
synced 2025-09-04 19:50:18 +00:00
Add error comments
This commit is contained in:
parent
9e2699aa31
commit
dfa9e153fe
1 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,10 @@ package osdetail
|
||||||
import "errors"
|
import "errors"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
// ErrNotSupported is returned when an operation is not supported on the current platform.
|
||||||
ErrNotSupported = errors.New("not supported")
|
ErrNotSupported = errors.New("not supported")
|
||||||
ErrNotFound = errors.New("not found")
|
// ErrNotFound is returned when the desired data is not found.
|
||||||
ErrEmptyOutput = errors.New("command succeeded with empty output")
|
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")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue