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:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user