diff --git a/tools/sh_commands.py b/tools/sh_commands.py index b14b37ed99683345c68432e24647a764998cd099..6f7dff93a2d9726d82594505824ee201eac40b8c 100644 --- a/tools/sh_commands.py +++ b/tools/sh_commands.py @@ -31,9 +31,8 @@ try: from binary_codegen import tuning_param_codegen from generate_data import generate_input_data from validate import validate -except Exception: - print("Error: import error.") - print("Does the script run at the root dir of mace project?") +except Exception as e: + print("Import error:\n%s" % e) exit(1)