From d8e466712a4c5af17c27953b38f1b4e7d914d5cf Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 27 Sep 2022 14:00:32 +0200 Subject: Log: Add 'inherit' that sets the error level as the log level --- types/error.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'types') diff --git a/types/error.go b/types/error.go index 607e6c6..c49fba2 100644 --- a/types/error.go +++ b/types/error.go @@ -8,11 +8,17 @@ import ( type ErrorLevel int8 const ( - // All other errors + // All other errors, default ERR_OTHER ErrorLevel = iota - // The error is just here as additional info + // The erorr is just here as additional info ERR_INFO + + // The error is just here as a warning + ERR_WARNING + + // The error is fatal, the app cannot function + ERR_FATAL ) type WrappedErrorMessage struct { -- cgit v1.2.3