1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00

Remove Reason: prefix for error prints

This commit is contained in:
Harshavardhana
2015-05-29 01:12:56 -07:00
parent 3103411e6d
commit a772ef963b

View File

@@ -33,10 +33,10 @@ func (e ErrorMessage) String() string {
if e.Error != nil { if e.Error != nil {
switch e.Error.(type) { switch e.Error.(type) {
case iodine.Error: case iodine.Error:
reason := "Reason: " + iodine.ToError(e.Error).Error() reason := iodine.ToError(e.Error).Error()
message = e.Message + ", " + reason message = e.Message + ", " + reason
default: default:
reason := "Reason: " + e.Error.Error() reason := e.Error.Error()
message = e.Message + ", " + reason message = e.Message + ", " + reason
} }
} }