From cf0fb5b111e2374d2bd714df7b32a05f0abda54c Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Wed, 17 Nov 2021 23:54:56 -0900 Subject: [PATCH] Add incorrect error type --- types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types.go b/types.go index 5823c96..8d1ec58 100644 --- a/types.go +++ b/types.go @@ -9,6 +9,7 @@ const ( Other Kind = iota // Unknown error or something that doesn't fit other categories Internal // Internal error that should not be shown to user Invalid // Operation is not permitted for this type of item + Incorrect // Incorrect configuration or values Permission // Permission denied IO // External IO error Conflict // The item already exists @@ -24,6 +25,8 @@ func (k Kind) String() string { return "internal error" case Invalid: return "invalid operation" + case Incorrect: + return "incorrect configuration" case Permission: return "permission denied" case IO: