|
|
@@ -266,10 +266,10 @@ func DeleteAttachments(attachments []*Attachment, remove bool) (int, error) { |
|
|
|
log.Info("delete obs file:" + input.Key) |
|
|
|
output, err := storage.ObsCli.DeleteObject(input) |
|
|
|
if err == nil { |
|
|
|
fmt.Printf("RequestId:%s\n", output.RequestId) |
|
|
|
log.Info("RequestId:%s\n", output.RequestId) |
|
|
|
} else if obsError, ok := err.(obs.ObsError); ok { |
|
|
|
fmt.Printf("Code:%s\n", obsError.Code) |
|
|
|
fmt.Printf("Message:%s\n", obsError.Message) |
|
|
|
log.Info("Code:%s\n", obsError.Code) |
|
|
|
log.Info("Message:%s\n", obsError.Message) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|