mirror of
https://github.com/elliotnunn/machfs.git
synced 2024-11-25 07:32:07 +00:00
Better error message for long filenames
This commit is contained in:
parent
a19c958bab
commit
968fdadf2b
@ -16,7 +16,7 @@ class AbstractFolder(collections.MutableMapping):
|
||||
key.encode('mac_roman')
|
||||
|
||||
if not (1 <= len(key) <= 31):
|
||||
raise ValueError('Filename range 1-31 chars')
|
||||
raise ValueError('%r: Filename range 1-31 chars' % key)
|
||||
|
||||
lower = key.lower()
|
||||
self._prefdict[lower] = key
|
||||
|
Loading…
Reference in New Issue
Block a user