display a more helpful message when base folder not readable in startup

This commit is contained in:
Damien Elmes 2019-07-17 17:23:22 +10:00
parent 95387af2cd
commit 4f819d06ec

View file

@ -92,7 +92,8 @@ class ProfileManager:
try: try:
self._ensureExists(self.base) self._ensureExists(self.base)
except: except:
# can't translate, as lang not initialized # can't translate, as lang not initialized, and qt may not be
print("unable to create base folder")
QMessageBox.critical( QMessageBox.critical(
None, "Error", """\ None, "Error", """\
Anki could not create the folder %s. Please ensure that location is not \ Anki could not create the folder %s. Please ensure that location is not \