Skip to content

Commit bc8643e

Browse files
committed
fix(__main__): show Error type name instead of the generic ERROR
1 parent 851ae43 commit bc8643e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcsas3/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@ def isMac():
116116
m = McSAS3_cli_optimize(**adict)
117117
m = McSAS3_cli_histogram(**adict)
118118
except TypeError as e: # for wrong cmdline arguments supplied
119-
print(f"ERROR: {str(e)}\n", file=sys.stderr)
119+
print(f"{type(e).__name__}: {str(e)}\n", file=sys.stderr)
120120
parser.print_help()

0 commit comments

Comments
 (0)