2021-08-31 01:40:43 +02:00
|
|
|
package settings
|
|
|
|
|
2021-09-05 01:41:42 +02:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/leonelquinteros/gotext"
|
|
|
|
)
|
2021-08-31 01:40:43 +02: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-05 01:41:42 +02: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 23:59:55 +02:00
|
|
|
|
|
|
|
type ErrUserAbort struct{}
|
|
|
|
|
|
|
|
func (e ErrUserAbort) Error() string {
|
|
|
|
return gotext.Get("aborting due to user")
|
|
|
|
}
|