Perhaps better error stacks for backups/archives; ref #2418

This commit is contained in:
Dane Everitt
2020-11-08 14:07:26 -08:00
parent be9d1a3986
commit ef999a039c
4 changed files with 13 additions and 19 deletions

View File

@@ -27,7 +27,7 @@ func (fs *Filesystem) GetIncludedFiles(dir string, ignored []string) (*backup.In
i, err := ignore.CompileIgnoreLines(ignored...)
if err != nil {
return nil, err
return nil, errors.WithStack(err)
}
// Walk through all of the files and directories on a server. This callback only returns

View File

@@ -138,5 +138,5 @@ func (fs *Filesystem) ParallelSafePath(paths []string) ([]string, error) {
}
// Block until all of the routines finish and have returned a value.
return cleaned, g.Wait()
return cleaned, errors.WithStackIf(g.Wait())
}