mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-07 05:58:28 -04:00
core: migrate to dankgo shared go modules, embed quickshell in DMS
binary to mount at runtime, -c or DMS_SHELL_DIR overrides required to explicitly override embedded configuration
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
package errdefs
|
||||
|
||||
type ErrorType int
|
||||
import (
|
||||
dankerrdefs "github.com/AvengeMedia/dankgo/errdefs"
|
||||
)
|
||||
|
||||
type ErrorType = dankerrdefs.ErrorType
|
||||
|
||||
type CustomError = dankerrdefs.CustomError
|
||||
|
||||
const (
|
||||
ErrTypeNotLinux ErrorType = iota
|
||||
ErrTypeNotLinux ErrorType = dankerrdefs.AppErrorBase + iota
|
||||
ErrTypeInvalidArchitecture
|
||||
ErrTypeUnsupportedDistribution
|
||||
ErrTypeUnsupportedVersion
|
||||
@@ -22,20 +28,8 @@ const (
|
||||
ErrTypeGeneric
|
||||
)
|
||||
|
||||
type CustomError struct {
|
||||
Type ErrorType
|
||||
Message string
|
||||
}
|
||||
|
||||
func (e *CustomError) Error() string {
|
||||
return e.Message
|
||||
}
|
||||
|
||||
func NewCustomError(errType ErrorType, message string) error {
|
||||
return &CustomError{
|
||||
Type: errType,
|
||||
Message: message,
|
||||
}
|
||||
return dankerrdefs.NewCustomError(errType, message)
|
||||
}
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user