From 8be555e5f91c6069c3d51cb014f1849fd182b1dc Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Thu, 24 Nov 2022 15:40:39 +0100 Subject: Style: Use stylecheck and fix errors --- types/error.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'types/error.go') diff --git a/types/error.go b/types/error.go index dc4b90e..fd56f3d 100644 --- a/types/error.go +++ b/types/error.go @@ -9,16 +9,16 @@ type ErrorLevel int8 const ( // All other errors, default - ERR_OTHER ErrorLevel = iota + ErrOther ErrorLevel = iota // The erorr is just here as additional info - ERR_INFO + ErrInfo // The error is just here as a warning - ERR_WARNING + ErrWarning // The error is fatal, the app cannot function - ERR_FATAL + ErrFatal ) type WrappedErrorMessage struct { @@ -94,5 +94,5 @@ func GetErrorLevel(err error) ErrorLevel { if errors.As(err, &wrappedErr) { return wrappedErr.Level } - return ERR_OTHER + return ErrOther } -- cgit v1.2.3