forked from TrueCloudLab/restic
Don't print stacktrace on invalid cacert option
This commit is contained in:
parent
1ce599d2ae
commit
89fbd39e59
1 changed files with 2 additions and 2 deletions
|
@ -584,7 +584,7 @@ func open(ctx context.Context, s string, gopts GlobalOptions, opts options.Optio
|
||||||
|
|
||||||
rt, err := backend.Transport(globalOptions.TransportOptions)
|
rt, err := backend.Transport(globalOptions.TransportOptions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, errors.Fatal(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
// wrap the transport so that the throughput via HTTP is limited
|
// 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)
|
rt, err := backend.Transport(globalOptions.TransportOptions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, errors.Fatal(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
factory := gopts.backends.Lookup(loc.Scheme)
|
factory := gopts.backends.Lookup(loc.Scheme)
|
||||||
|
|
Loading…
Reference in a new issue