jet/internal/utils/errfmt/errfmt.go
Eli Ribble 41fe97d336
Fix the imports I botched really badly
Apparently I don't understand how go modules work.
2026-05-14 20:56:20 +00:00

14 lines
312 B
Go

package errfmt
import (
"source.gleipnir.technology/Gleipnir/jet/v2/internal/utils/is"
"strings"
)
// Trace returns well formatted wrapped error trace string
func Trace(err error) string {
if is.Nil(err) {
return ""
}
return "Error trace:\n" + " - " + strings.Replace(err.Error(), ": ", ":\n - ", -1)
}