diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-02-28 11:57:50 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-02-28 11:57:50 +0100 |
| commit | b38d6475ea82754d9d3b6e49a00decad04beb310 (patch) | |
| tree | 381cafad34aa2e10e2e8c4204c130c1e54a30de5 /exports | |
| parent | 0cef468252e25f409a435fa0da95ae7faf4698c1 (diff) | |
Refactor: Remove error level
Not useful enought just yet
Diffstat (limited to 'exports')
| -rw-r--r-- | exports/error.h | 8 | ||||
| -rw-r--r-- | exports/exports.go | 2 |
2 files changed, 0 insertions, 10 deletions
diff --git a/exports/error.h b/exports/error.h index 64592e1..2f94bbc 100644 --- a/exports/error.h +++ b/exports/error.h @@ -1,15 +1,7 @@ #ifndef ERROR_H #define ERROR_H -typedef enum errorLevel { - ERR_OTHER, - ERR_INFO, - ERR_WARNING, - ERR_FATAL, -} errorLevel; - typedef struct error { - errorLevel level; const char* traceback; const char* cause; } error; diff --git a/exports/exports.go b/exports/exports.go index 5a17da0..6e50f65 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -34,7 +34,6 @@ import ( "time" "unsafe" - "github.com/eduvpn/eduvpn-common/internal/log" "github.com/eduvpn/eduvpn-common/internal/oauth" "github.com/go-errors/errors" @@ -172,7 +171,6 @@ func getError(err error) *C.error { errorStruct.traceback = C.CString("N/A") errorStruct.cause = C.CString(err.Error()) } - errorStruct.level = C.errorLevel(log.GetErrorLevel(err)) return errorStruct } |
