tools/makemanifest.py: Show directory name if there is a FreezeError.

This commit is contained in:
Steve App 2021-04-25 12:45:06 +00:00 committed by Damien George
parent 21fee92be6
commit 326dd7f0db
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ def mkdir(filename):
def freeze_internal(kind, path, script, opt): def freeze_internal(kind, path, script, opt):
path = convert_path(path) path = convert_path(path)
if not os.path.isdir(path): if not os.path.isdir(path):
raise FreezeError("freeze path must be a directory") raise FreezeError("freeze path must be a directory: {}".format(path))
if script is None and kind == KIND_AS_STR: if script is None and kind == KIND_AS_STR:
if any(f[0] == KIND_AS_STR for f in manifest_list): if any(f[0] == KIND_AS_STR for f in manifest_list):
raise FreezeError("can only freeze one str directory") raise FreezeError("can only freeze one str directory")