mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
Improve error reporting
This will print the error (including a stack trace) if available before exiting.
This commit is contained in:
parent
5b1e4df177
commit
d4e994de7b
@ -162,6 +162,7 @@ func (arch *Archiver) saveChunk(ctx context.Context, chunk chunker.Chunk, p *res
|
|||||||
// TODO handle error
|
// TODO handle error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
debug.Log("Save(%v) failed: %v", id.Str(), err)
|
debug.Log("Save(%v) failed: %v", id.Str(), err)
|
||||||
|
fmt.Printf("\nerror while saving data to the repo: %+v\n", err)
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user