v0.0.464 improve ZeroLogErrTraces/ZeroLogAllTraces output for empty-message wrapped exerrs
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 4m36s

This commit is contained in:
Mike Schwörer 2024-06-01 02:40:48 +02:00
parent d2c04afcd5
commit 9dd81f6bd5
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 5 additions and 2 deletions

View File

@ -84,6 +84,9 @@ func (ee *ExErr) FormatLog(lvl LogPrintLevel) string {
if lvl == LogPrintShort {
msg := ee.Message
if msg == "" {
msg = ee.RecursiveMessage()
}
if ee.OriginalError != nil && ee.OriginalError.Category == CatForeign {
msg = msg + " (" + strings.ReplaceAll(ee.OriginalError.Message, "\n", " ") + ")"
}

View File

@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.463"
const GoextVersion = "0.0.464"
const GoextVersionTimestamp = "2024-05-29T20:20:01+0200"
const GoextVersionTimestamp = "2024-06-01T02:40:48+0200"