Commit a0a61f30 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Correct error message if file does not exist

parent 5c2058e7
......@@ -1100,7 +1100,8 @@ class file_upload(_file_container_command, _optional_output_cmd):
print('%s is not a regular file' % fpath)
if not path.isfile(lpath):
raiseCLIError('%s is not a regular file' % lpath)
raiseCLIError(('%s is not aregular file' % lpath) if (
path.exists(lpath)) else '%s does not exist' % lpath)
robj = self.client.get_object_info(rpath)
if remote_path and self._is_dir(robj):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment