Browse Source

adjust error format

pull/753/head
Chris Lu 6 years ago
parent
commit
453d0be4d4
  1. 2
      weed/replication/sink/gcssink/gcs_sink.go

2
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

Loading…
Cancel
Save