2021-08-30 23:40:43 +00:00
|
|
|
package settings
|
|
|
|
|
2021-09-04 23:41:42 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/leonelquinteros/gotext"
|
|
|
|
)
|
2021-08-30 23:40:43 +00:00
|
|
|
|
|
|
|
type ErrPrivilegeElevatorNotFound struct {
|
|
|
|
confValue string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *ErrPrivilegeElevatorNotFound) Error() string {
|
|
|
|
return fmt.Sprintf("unable to find a privilege elevator, config value: %s", e.confValue)
|
|
|
|
}
|
2021-09-04 23:41:42 +00:00
|
|
|
|
|
|
|
type ErrRuntimeDir struct {
|
|
|
|
inner error
|
|
|
|
dir string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *ErrRuntimeDir) Error() string {
|
|
|
|
return gotext.Get("failed to create directory '%s': %s", e.dir, e.inner)
|
|
|
|
}
|
2021-10-10 21:59:55 +00:00
|
|
|
|
|
|
|
type ErrUserAbort struct{}
|
|
|
|
|
|
|
|
func (e ErrUserAbort) Error() string {
|
|
|
|
return gotext.Get("aborting due to user")
|
|
|
|
}
|