rest/sftp: Remove redundant fatal from error message

This caused restic to exit with error messages like
`Fatal: parsing repository location failed: Fatal: sftp path [...]`
`Fatal: create repository at rest:http://localhost:12345/ failed: Fatal: config file already exists`
This commit is contained in:
Michael Eischer 2023-05-13 22:19:19 +02:00
parent 2f518b7241
commit f9850b79b5
2 changed files with 3 additions and 3 deletions

View file

@ -80,7 +80,7 @@ func ParseConfig(s string) (interface{}, error) {
p := path.Clean(dir)
if strings.HasPrefix(p, "~") {
return nil, errors.Fatal("sftp path starts with the tilde (~) character, that fails for most sftp servers.\nUse a relative directory, most servers interpret this as relative to the user's home directory.")
return nil, errors.New("sftp path starts with the tilde (~) character, that fails for most sftp servers.\nUse a relative directory, most servers interpret this as relative to the user's home directory")
}
cfg := NewConfig()