Include a better stack here

This commit is contained in:
Dane Everitt 2021-01-18 21:22:37 -08:00
parent 6ef0bd7496
commit 63dac51692
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -131,7 +131,7 @@ func (s *Server) RestoreBackup(b backup.BackupInterface, reader io.ReadCloser) (
// server being suspended.
err = s.Environment.WaitForStop(120, false)
if err != nil {
return err
return errors.WithStackIf(err)
}
// Send an API call to the Panel as soon as this function is done running so that
// the Panel is informed of the restoration status of this backup.
@ -147,5 +147,5 @@ func (s *Server) RestoreBackup(b backup.BackupInterface, reader io.ReadCloser) (
return s.Filesystem().Writefile(file, r)
})
return err
return errors.WithStackIf(err)
}