mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 18:26:15 +01:00
add debugging hint to cmdln.py
This commit is contained in:
parent
5739a5c262
commit
1c6f303c70
@ -1123,6 +1123,13 @@ class Cmdln(RawCmdln):
|
|||||||
msg[2] = msg[2].replace("arguments", "argument")
|
msg[2] = msg[2].replace("arguments", "argument")
|
||||||
msg[3] = int(msg[3]) - 3
|
msg[3] = int(msg[3]) - 3
|
||||||
msg = ''.join(map(str, msg))
|
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)
|
raise CmdlnUserError(msg)
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user