forked from rosa/hakurei
internal/uevent: recoverable errors
This runs in the Rosa OS init, so recover as much as possible, as otherwise it is likely to require a full system reboot to resume event processing. The caller is responsible for reporting the error. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -59,6 +59,9 @@ func (act KobjectAction) MarshalText() ([]byte, error) {
|
||||
// not yet supported by this package.
|
||||
type UnsupportedActionError string
|
||||
|
||||
var _ Recoverable = UnsupportedActionError("")
|
||||
|
||||
func (UnsupportedActionError) recoverable() {}
|
||||
func (e UnsupportedActionError) Error() string {
|
||||
return "unsupported kobject_action " + strconv.Quote(string(e))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user