Skip to content

Commit

Permalink
Reworked error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Sep 13, 2024
1 parent c5f611d commit f54a3e7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/commoniface.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
from base64 import urlsafe_b64encode, urlsafe_b64decode
from binascii import Error as B64Error

# Standard Linux error messages as also defined in cs3client.exceptions

# standard file missing message
# file missing message
ENOENT_MSG = 'No such file or directory'

# standard error thrown when attempting to overwrite a file/xattr in O_EXCL mode
# error thrown when attempting to overwrite a file/xattr in O_EXCL mode
# or when a lock operation cannot be performed because of failed preconditions
EXCL_ERROR = 'File/xattr exists but EXCL mode requested, lock mismatch or lock expired'
EXCL_ERROR = 'Lock mismatch'

# standard error thrown when attempting an operation without the required access rights
# attempt an operation without the required access rights
ACCESS_ERROR = 'Operation not permitted'

# name of the xattr storing the Reva lock
Expand Down

0 comments on commit f54a3e7

Please sign in to comment.