aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-10-09 01:35:30 -0700
committerChris Lu <chris.lu@gmail.com>2018-10-09 01:35:30 -0700
commit453d0be4d4f3f8d6c1333ab99f0281ed4ba8c5a8 (patch)
treea1719e2c11e2ac7187d9a6ee1ef5a569ad271a31
parent88ad8d3a896e1ed339b3d811ca921ccca8c9c68a (diff)
downloadseaweedfs-453d0be4d4f3f8d6c1333ab99f0281ed4ba8c5a8.tar.xz
seaweedfs-453d0be4d4f3f8d6c1333ab99f0281ed4ba8c5a8.zip
adjust error format
-rw-r--r--weed/replication/sink/gcssink/gcs_sink.go2
1 files changed, 1 insertions, 1 deletions
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