Don't throw a 500 error if the backup is missing; closes pterodactyl/panel#2280
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user