mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Include library path in error message about path length
This commit is contained in:
parent
e643e34688
commit
21540da4f4
@ -317,8 +317,8 @@ class DB(object):
|
||||
|
||||
if iswindows and len(self.library_path) + 4*self.PATH_LIMIT + 10 > 259:
|
||||
raise ValueError(_(
|
||||
'Path to library too long. Must be less than'
|
||||
' %d characters.')%(259-4*self.PATH_LIMIT-10))
|
||||
'Path to library (%s) too long. Must be less than'
|
||||
' %d characters.')%(self.library_path, 259-4*self.PATH_LIMIT-10))
|
||||
exists = self._exists = os.path.exists(self.dbpath)
|
||||
if not exists:
|
||||
# Be more strict when creating new libraries as the old calculation
|
||||
|
Loading…
x
Reference in New Issue
Block a user