From 63dac516929416cb90a4987113c79b0429294559 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 18 Jan 2021 21:22:37 -0800 Subject: [PATCH] Include a better stack here --- server/backup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/backup.go b/server/backup.go index a61dd28..f8e5fa3 100644 --- a/server/backup.go +++ b/server/backup.go @@ -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) }