mirror of
https://github.com/containous/traefik.git
synced 2025-01-07 17:17:53 +03:00
fix: improve log for invalid middleware.
This commit is contained in:
parent
ea78808e74
commit
027d313df5
@ -324,7 +324,7 @@ func (b *Builder) buildConstructor(ctx context.Context, middlewareName string) (
|
||||
}
|
||||
|
||||
if middleware == nil {
|
||||
return nil, fmt.Errorf("middleware %q does not exist", middlewareName)
|
||||
return nil, fmt.Errorf("invalid middleware %q configuration: invalid middleware type or middleware does not exist", middlewareName)
|
||||
}
|
||||
|
||||
return tracing.Wrap(ctx, middleware), nil
|
||||
|
Loading…
Reference in New Issue
Block a user