Skip to content

Commit

Permalink
error message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Dec 5, 2016
1 parent dcd336b commit 108126d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/error_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class _ConvertOSErrors(object):
#errno.ENOTDIR: errors.DirectoryExpected,
errno.ENOTDIR: errors.ResourceNotFound,
errno.EISDIR: errors.FileExpected,
errno.EINVAL: errors.DirectoryExpected,
errno.EINVAL: errors.FileExpected,
errno.ENOSPC: errors.InsufficientStorage,
errno.EPERM: errors.PermissionDenied,
errno.ENETDOWN: errors.RemoteConnectionError,
Expand All @@ -37,7 +37,7 @@ class _ConvertOSErrors(object):
DIR_ERRORS = FILE_ERRORS.copy()
DIR_ERRORS[errno.ENOTDIR] = errors.DirectoryExpected
DIR_ERRORS[errno.EEXIST] = errors.DirectoryExists
DIR_ERRORS[errno.EINVAL] = errors.FileExpected
DIR_ERRORS[errno.EINVAL] = errors.DirectoryExpected

def __init__(self, opname, path, directory=False):
self._opname = opname
Expand Down

0 comments on commit 108126d

Please sign in to comment.