mirror of
https://github.com/Jguer/yay.git
synced 2024-11-07 09:37:22 +01:00
25 lines
463 B
Go
25 lines
463 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)
|
|
}
|