mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
31 lines
576 B
Go
31 lines
576 B
Go
package settings
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/leonelquinteros/gotext"
|
|
)
|
|
|
|
type ErrPrivilegeElevatorNotFound struct {
|
|
confValue string
|
|
}
|
|
|
|
func (e *ErrPrivilegeElevatorNotFound) Error() string {
|
|
return fmt.Sprintf("unable to find a privilege elevator, config value: %s", e.confValue)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
type ErrUserAbort struct{}
|
|
|
|
func (e ErrUserAbort) Error() string {
|
|
return gotext.Get("aborting due to user")
|
|
}
|