Handle errors better with new changes, changes across cp, mirror, mb

This commit is contained in:
Harshavardhana
2015-08-03 21:13:29 -07:00
parent 08252acba7
commit e003a242f6
6 changed files with 56 additions and 83 deletions
+6
View File
@@ -161,6 +161,12 @@ func (e errSourceIsNotDir) Error() string {
return "Source ‘" + e.URL + "’ is not a folder."
}
type errSourceIsNotFile errTargetIsNotDir
func (e errSourceIsNotFile) Error() string {
return "Source ‘" + e.URL + "’ is not a file."
}
type errSourceListEmpty errInvalidArgument
func (e errSourceListEmpty) Error() string {