mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 04:45:15 +00:00
Don't print stacktrace on invalid cacert option
This commit is contained in:
parent
1ce599d2ae
commit
89fbd39e59
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user