mirror of
https://github.com/Jguer/yay
synced 2024-09-06 16:43:03 +00: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)
|
|
}
|