Files
pmg/errcodes/codes.go
T
Sahilb315 ea2c7e8242 feat(proxy): report blocked packages on stop, exit 1 if any were blocked
pmg proxy stop now waits for the proxy process to exit, reads the final
blocked count written to the state file on shutdown, and exits non-zero
when one or more packages were blocked during the session.

This gives CI a clear failure signal from the proxy itself, separate
from the package manager's own exit code.
2026-06-23 17:07:07 +05:30

35 lines
1.3 KiB
Go

package errcodes
const (
InvalidArgument = "InvalidArgument"
PermissionDenied = "PermissionDenied"
NotFound = "NotFound"
Timeout = "Timeout"
Canceled = "Canceled"
UnexpectedEOF = "UnexpectedEOF"
Lifecycle = "Lifecycle"
Network = "Network"
PackageManagerExecutionFailed = "PackageManagerExecutionFailed"
BubblewrapNotFound = "BubblewrapNotFound"
// Package manager error codes.
DependencyResolutionFailed = "DependencyResolutionFailed"
PackageParseFailed = "PackageParseFailed"
PackageAuthorNotFound = "PackageAuthorNotFound"
GitHubRateLimitExceeded = "GitHubRateLimitExceeded"
// Certificate trust store error codes.
CertGeneration = "CertGeneration"
CertPersistence = "CertPersistence"
CertTrustStore = "CertTrustStore"
UnsupportedPlatform = "UnsupportedPlatform"
// Proxy error codes.
ProxyPackagesBlocked = "ProxyPackagesBlocked"
// Unknown mirrors the default code that dry/usefulerror returns for errors
// created without an explicit code, so unset and explicitly-unknown errors
// classify identically (e.g. the bug-report hint in ui.ErrorExit).
Unknown = "unknown"
)