Add cast syntax check logic

-- TypeA for both cast and copy targetURL check shouldn't fail it it doesn't exist
   such is a common occurrence of not having a target, instead we verify if it exists
   is it a directory?
-- Rename all 'directory' references to folder
This commit is contained in:
Harshavardhana
2015-07-24 14:43:47 -07:00
parent df494eafdc
commit 1afc92cb49
20 changed files with 131 additions and 71 deletions
+3 -3
View File
@@ -140,13 +140,13 @@ func (e errInvalidTheme) Error() string {
type errTargetIsNotDir errInvalidURL
func (e errTargetIsNotDir) Error() string {
return "Target ‘" + e.URL + "’ is not a directory."
return "Target ‘" + e.URL + "’ is not a folder."
}
type errTargetNotFound errInvalidURL
func (e errTargetNotFound) Error() string {
return "Target directory ‘" + e.URL + "’ does not exist."
return "Target folder ‘" + e.URL + "’ does not exist."
}
type errSourceNotRecursive errInvalidURL
@@ -158,7 +158,7 @@ func (e errSourceNotRecursive) Error() string {
type errSourceIsNotDir errTargetIsNotDir
func (e errSourceIsNotDir) Error() string {
return "Source ‘" + e.URL + "’ is not a directory."
return "Source ‘" + e.URL + "’ is not a folder."
}
type errSourceListEmpty errInvalidArgument