archiver: Add test for early abort on unhandled error

This commit is contained in:
Alexander Neumann 2018-05-12 23:08:00 +02:00
parent 526956af35
commit c5e75d1c98
3 changed files with 143 additions and 0 deletions

View file

@ -398,6 +398,7 @@ func (arch *Archiver) Save(ctx context.Context, snPath, target string, previous
if err == nil {
arch.CompleteItem(snItem, previous, fn.node, fn.stats, time.Since(start))
} else {
debug.Log("SaveDir for %v returned error: %v", snPath, err)
return FutureNode{}, false, err
}