This commit is contained in:
Miroslav Stampar
2019-05-09 10:52:33 +02:00
parent b1efef45a9
commit 9c917ec920
6 changed files with 13 additions and 29 deletions

View File

@@ -27,6 +27,7 @@ try:
import re
import shutil
import sys
import tempfile
import threading
import time
import traceback
@@ -284,6 +285,14 @@ def main():
logger.critical(errMsg)
raise SystemExit
elif any(_ in excMsg for _ in ("tempfile.mkdtemp", "tempfile.mkstemp")):
errMsg = "unable to write to the temporary directory '%s'. " % tempfile.gettempdir()
errMsg += "Please make sure that your disk is not full and "
errMsg += "that you have sufficient write permissions to "
errMsg += "create temporary files and/or directories"
logger.critical(errMsg)
raise SystemExit
elif all(_ in excMsg for _ in ("twophase", "sqlalchemy")):
errMsg = "please update the 'sqlalchemy' package (>= 1.1.11) "
errMsg += "(Reference: https://qiita.com/tkprof/items/7d7b2d00df9c5f16fffe)"