From b8cb989e549b13dbffc8a7e762f52ec8282f8768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 7 Oct 2024 17:20:40 +0200 Subject: [PATCH] v0.0.528 --- exerr/helper.go | 13 +++++++++++++ goextVersion.go | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/exerr/helper.go b/exerr/helper.go index 3f3132d..8a7d11e 100644 --- a/exerr/helper.go +++ b/exerr/helper.go @@ -111,3 +111,16 @@ func OriginalError(e error) error { return bmerr } + +func UniqueID(v error) *string { + if v == nil { + return nil + } + + //goland:noinspection GoTypeAssertionOnErrors + if verr, ok := v.(*ExErr); ok { + return &verr.UniqueID + } + + return nil +} diff --git a/goextVersion.go b/goextVersion.go index 438e234..494122c 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.527" +const GoextVersion = "0.0.528" -const GoextVersionTimestamp = "2024-10-07T17:19:30+0200" +const GoextVersionTimestamp = "2024-10-07T17:20:40+0200"