Turn package script fatal errors into warnings

This commit is contained in:
2025-08-14 17:09:18 +03:00
parent 6501105dd1
commit 17af8dbaaf
2 changed files with 21 additions and 10 deletions
+11
View File
@@ -28,4 +28,15 @@ type PackageConflictErr struct {
func (e PackageConflictErr) Error() string {
return fmt.Sprintf("Package (%s) is in conflict with the following packages: %s", e.pkg, strings.Join(e.conflicts, ", "))
}
type PackageScriptErr struct {
err error
packageName string
packageScript string
}
func (e PackageScriptErr) Error() string {
return fmt.Sprintf("could not execute package script (%s) for package (%s): %s", e.packageScript, e.packageName, e.err)
}