Don't print stacktrace on invalid cacert option

This commit is contained in:
Michael Eischer 2023-07-09 14:17:43 +02:00
parent 1ce599d2ae
commit 89fbd39e59

View file

@ -584,7 +584,7 @@ func open(ctx context.Context, s string, gopts GlobalOptions, opts options.Optio
rt, err := backend.Transport(globalOptions.TransportOptions)
if err != nil {
return nil, err
return nil, errors.Fatal(err.Error())
}
// wrap the transport so that the throughput via HTTP is limited
@ -640,7 +640,7 @@ func create(ctx context.Context, s string, gopts GlobalOptions, opts options.Opt
rt, err := backend.Transport(globalOptions.TransportOptions)
if err != nil {
return nil, err
return nil, errors.Fatal(err.Error())
}
factory := gopts.backends.Lookup(loc.Scheme)