Skip to content

Commit f54a3e7

Browse files
committed
Reworked error messages
1 parent c5f611d commit f54a3e7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/core/commoniface.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
from base64 import urlsafe_b64encode, urlsafe_b64decode
1313
from binascii import Error as B64Error
1414

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

16-
# standard file missing message
17+
# file missing message
1718
ENOENT_MSG = 'No such file or directory'
1819

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

23-
# standard error thrown when attempting an operation without the required access rights
24+
# attempt an operation without the required access rights
2425
ACCESS_ERROR = 'Operation not permitted'
2526

2627
# name of the xattr storing the Reva lock

0 commit comments

Comments
 (0)