v0.0.566
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m35s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m35s
This commit is contained in:
@@ -415,6 +415,10 @@ func (b *Builder) Extra(key string, val any) *Builder {
|
||||
// Can be gloablly configured with ZeroLogErrTraces and ZeroLogAllTraces
|
||||
// Can be locally suppressed with Builder.NoLog()
|
||||
func (b *Builder) Build(ctxs ...context.Context) error {
|
||||
return b.BuildAsExerr(ctxs...)
|
||||
}
|
||||
|
||||
func (b *Builder) BuildAsExerr(ctxs ...context.Context) *ExErr {
|
||||
warnOnPkgConfigNotInitialized()
|
||||
|
||||
for _, dctx := range ctxs {
|
||||
@@ -422,7 +426,7 @@ func (b *Builder) Build(ctxs ...context.Context) error {
|
||||
}
|
||||
|
||||
if pkgconfig.DisableErrorWrapping && b.wrappedErr != nil {
|
||||
return b.wrappedErr
|
||||
return FromError(b.wrappedErr)
|
||||
}
|
||||
|
||||
if pkgconfig.ZeroLogErrTraces && !b.noLog && (b.errorData.Severity == SevErr || b.errorData.Severity == SevFatal) {
|
||||
|
Reference in New Issue
Block a user