From 72734d59b5a5512ac4e14f5839c3f65bb40ad9c8 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Wed, 12 Feb 2020 13:37:37 -0800 Subject: [PATCH] internal/archiver: fix dropped error --- internal/archiver/archiver.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/archiver/archiver.go b/internal/archiver/archiver.go index 16dd76254..770a827bb 100644 --- a/internal/archiver/archiver.go +++ b/internal/archiver/archiver.go @@ -822,6 +822,10 @@ func (arch *Archiver) Snapshot(ctx context.Context, targets []string, opts Snaps } sn, err := restic.NewSnapshot(targets, opts.Tags, opts.Hostname, opts.Time) + if err != nil { + return nil, restic.ID{}, err + } + sn.Excludes = opts.Excludes if !opts.ParentSnapshot.IsNull() { id := opts.ParentSnapshot