Plugins work now oughghgghughgghg

This commit is contained in:
2024-12-10 15:51:34 -05:00
parent c2ccaff8ab
commit f112a2e564
4 changed files with 121 additions and 66 deletions

View File

@@ -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
}