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
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 4m36s
This commit is contained in:
parent
d2c04afcd5
commit
9dd81f6bd5
@ -84,6 +84,9 @@ func (ee *ExErr) FormatLog(lvl LogPrintLevel) string {
|
|||||||
if lvl == LogPrintShort {
|
if lvl == LogPrintShort {
|
||||||
|
|
||||||
msg := ee.Message
|
msg := ee.Message
|
||||||
|
if msg == "" {
|
||||||
|
msg = ee.RecursiveMessage()
|
||||||
|
}
|
||||||
if ee.OriginalError != nil && ee.OriginalError.Category == CatForeign {
|
if ee.OriginalError != nil && ee.OriginalError.Category == CatForeign {
|
||||||
msg = msg + " (" + strings.ReplaceAll(ee.OriginalError.Message, "\n", " ") + ")"
|
msg = msg + " (" + strings.ReplaceAll(ee.OriginalError.Message, "\n", " ") + ")"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user