From ac416f7b6919e1a12c72aff6a4a8c55158c9654d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Tue, 8 Aug 2023 18:01:00 +0200 Subject: [PATCH] v0.0.232 --- exerr/builder.go | 4 ++++ goextVersion.go | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/exerr/builder.go b/exerr/builder.go index 517a74c..3681229 100644 --- a/exerr/builder.go +++ b/exerr/builder.go @@ -80,6 +80,10 @@ func New(t ErrorType, msg string) *Builder { } func Wrap(err error, msg string) *Builder { + if err == nil { + return &Builder{errorData: newExErr(CatSystem, TypeInternal, msg)} // prevent NPE if we call Wrap with err==nil + } + if !pkgconfig.RecursiveErrors { v := FromError(err) v.Message = msg diff --git a/goextVersion.go b/goextVersion.go index 4e57be4..46c0ef6 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.231" +const GoextVersion = "0.0.232" -const GoextVersionTimestamp = "2023-08-08T16:10:31+0200" +const GoextVersionTimestamp = "2023-08-08T18:01:00+0200"