rb: Better error message when the user passes an object name (#4183)
The new error message is: ``` $ mc rb --force play/testbucket/dir/ mc: <ERROR> Failed to remove `play/testbucket/dir/`. Bucket name `testbucket/dir/` not valid. ```
This commit is contained in:
@@ -73,7 +73,7 @@ type BucketInvalid struct {
|
||||
}
|
||||
|
||||
func (e BucketInvalid) Error() string {
|
||||
return "Bucket name " + e.Bucket + " not valid."
|
||||
return "Bucket name `" + e.Bucket + "` not valid."
|
||||
}
|
||||
|
||||
// ObjectAlreadyExists - typed return for MethodNotAllowed
|
||||
|
||||
Reference in New Issue
Block a user