Don't throw a 500 error if the backup is missing; closes pterodactyl/panel#2280

This commit is contained in:
Dane Everitt
2020-08-31 20:24:07 -07:00
parent 1e633ae302
commit 5f1d9ff151
3 changed files with 22 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ func LocateLocal(uuid string) (*LocalBackup, os.FileInfo, error) {
}
if st.IsDir() {
return nil, nil, errors.New("invalid archive found; is directory")
return nil, nil, errors.New("invalid archive, is directory")
}
return b, st, nil