mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
chore: Improve console error experience (#124)
* chore: Improve console error experience * fix: Use standard error code and handle verbosity
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package usefulerror
|
||||
|
||||
// Standard error codes that can be re-used across the project.
|
||||
// We will use a human friendly format for the error codes and not align with posix error codes.
|
||||
// Keep this minimal. Reuse first before adding new ones.
|
||||
const (
|
||||
ErrCodeInvalidArgument = "InvalidArgument"
|
||||
ErrCodePermissionDenied = "PermissionDenied"
|
||||
ErrCodeNotFound = "NotFound"
|
||||
ErrCodeTimeout = "Timeout"
|
||||
ErrCodeCanceled = "Canceled"
|
||||
ErrCodeUnexpectedEOF = "UnexpectedEOF"
|
||||
ErrCodeUnknown = "Unknown"
|
||||
ErrCodeLifecycle = "Lifecycle"
|
||||
ErrCodeNetwork = "Network"
|
||||
)
|
||||
Reference in New Issue
Block a user