Plugins work now oughghgghughgghg
This commit is contained in:
6
error.go
6
error.go
@@ -8,6 +8,7 @@ type Error string; const (
|
||||
ErrTypeMismatch Error = "type mismatch"
|
||||
ErrPluginBadSymbol Error = "plugin has an incorrect symbol"
|
||||
ErrPluginNotOwnedByRoot Error = "plugin is not owned by the root user"
|
||||
ErrPathNotAbsolute Error = "path is not absolute"
|
||||
ErrInsufficientSystem Error = "the system cannot perform this action"
|
||||
)
|
||||
|
||||
@@ -15,3 +16,8 @@ type Error string; const (
|
||||
func (err Error) Error () string {
|
||||
return string(err)
|
||||
}
|
||||
|
||||
// Errors is any error that unwraps to a list of sub-errors.
|
||||
type Errors interface {
|
||||
Unwrap () []error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user