From 453d0be4d4f3f8d6c1333ab99f0281ed4ba8c5a8 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 9 Oct 2018 01:35:30 -0700 Subject: [PATCH] adjust error format --- weed/replication/sink/gcssink/gcs_sink.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/replication/sink/gcssink/gcs_sink.go b/weed/replication/sink/gcssink/gcs_sink.go index db71aa1f9..55012ecc7 100644 --- a/weed/replication/sink/gcssink/gcs_sink.go +++ b/weed/replication/sink/gcssink/gcs_sink.go @@ -76,7 +76,7 @@ func (g *GcsSink) DeleteEntry(key string, isDirectory, deleteIncludeChunks bool) } if err := g.client.Bucket(g.bucket).Object(key).Delete(context.Background()); err != nil { - return fmt.Errorf("gcs delete %s %s", g.bucket, key) + return fmt.Errorf("gcs delete %s%s: %v", g.bucket, key, err) } return nil