debug: Add log before panic()

This commit is contained in:
Alexander Neumann 2017-06-09 22:41:08 +02:00
parent d3c06c39f9
commit 19da56a6ea

View file

@ -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)
}