chore: Standardise Error Codes (#286)

* fix: Misc error handling fixes

* fix: Sandbox error translation
This commit is contained in:
Abhisek Datta
2026-05-24 12:46:06 +05:30
committed by GitHub
parent 20e01d5cae
commit 219d743b80
25 changed files with 162 additions and 47 deletions
+2 -2
View File
@@ -7,13 +7,13 @@ import (
"path/filepath"
"github.com/safedep/dry/log"
"github.com/safedep/dry/usefulerror"
"github.com/safedep/dry/utils"
"github.com/safedep/pmg/config"
"github.com/safedep/pmg/errcodes"
"github.com/safedep/pmg/internal/audit"
"github.com/safedep/pmg/sandbox"
"github.com/safedep/pmg/sandbox/platform"
"github.com/safedep/dry/usefulerror"
"github.com/safedep/pmg/errcodes"
)
type applySandboxConfig struct {
+2 -2
View File
@@ -4,10 +4,10 @@ import (
"fmt"
"github.com/safedep/dry/log"
"github.com/safedep/pmg/config"
"github.com/safedep/pmg/sandbox"
"github.com/safedep/dry/usefulerror"
"github.com/safedep/pmg/config"
"github.com/safedep/pmg/errcodes"
"github.com/safedep/pmg/sandbox"
)
// WrapCommandExecutionError converts a package manager execution error into a
+1 -1
View File
@@ -6,9 +6,9 @@ import (
"os/exec"
"testing"
"github.com/safedep/pmg/sandbox"
"github.com/safedep/dry/usefulerror"
"github.com/safedep/pmg/errcodes"
"github.com/safedep/pmg/sandbox"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)