You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/cache.py
+4-4
Original file line number
Diff line number
Diff line change
@@ -75,10 +75,10 @@ def lock(reason):
75
75
defensure():
76
76
ensure_setup()
77
77
ifnotos.path.isdir(cachedir):
78
-
parent_dir=os.path.dirname(cachedir)
79
-
ifnotis_writable(parent_dir):
80
-
utils.exit_with_error(f'unable to create cache directory "{cachedir}": parent directory not writable (see https://emscripten.org/docs/tools_reference/emcc.html for info on setting the cache directory)')
81
-
utils.safe_ensure_dirs(cachedir)
78
+
try:
79
+
utils.safe_ensure_dirs(cachedir)
80
+
exceptExceptionase:
81
+
utils.exit_with_error(f'unable to create cache directory "{cachedir}": {e} (see https://emscripten.org/docs/tools_reference/emcc.html for info on setting the cache directory)')
0 commit comments