mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 03:18:55 +00:00
debug: Add log before panic()
This commit is contained in:
parent
d3c06c39f9
commit
19da56a6ea
@ -161,6 +161,7 @@ func (arch *Archiver) saveChunk(ctx context.Context, chunk chunker.Chunk, p *res
|
||||
err := arch.Save(ctx, restic.DataBlob, chunk.Data, id)
|
||||
// TODO handle error
|
||||
if err != nil {
|
||||
debug.Log("Save(%v) failed: %v", id.Str(), err)
|
||||
panic(err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user