mirror of
https://github.com/minio/mc.git
synced 2025-11-12 01:02:26 +03:00
committed by
Nitish Tiwari
parent
a63a1f7eca
commit
dfffc1e7cc
@@ -182,3 +182,12 @@ func (e UnexpectedExcessRead) Error() string {
|
||||
msg := fmt.Sprintf("Received excess data on input reader. Expected only `%d` bytes, but received `%d` bytes.", e.TotalSize, e.TotalWritten)
|
||||
return msg
|
||||
}
|
||||
|
||||
// SameFile - source and destination are same files.
|
||||
type SameFile struct {
|
||||
Source, Destination string
|
||||
}
|
||||
|
||||
func (e SameFile) Error() string {
|
||||
return fmt.Sprintf("'%s' and '%s' are the same file", e.Source, e.Destination)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user