1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01:00

add debugging hint to cmdln.py

This commit is contained in:
Dr. Peter Poeml 2007-05-04 21:51:15 +00:00
parent 5739a5c262
commit 1c6f303c70

View File

@ -1123,6 +1123,13 @@ class Cmdln(RawCmdln):
msg[2] = msg[2].replace("arguments", "argument")
msg[3] = int(msg[3]) - 3
msg = ''.join(map(str, msg))
# To debug errors which involve calling functions with
# wrong number of arguments, uncomment the following line.
# Otherwise, all errors of this kind are presented as
# "incorrect usage" to the user:
#raise
raise CmdlnUserError(msg)
else:
raise