X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=lib%2Fmudpy%2Fmisc.py;h=9e6dd994aa549167de6559468fa377d915232353;hp=7e8e612216c69077ce2a3818cf157189488486d9;hb=c415d839f74f63db69a33e6a75af0ccc881fadb3;hpb=835a5824f9313c9154388e0074bcfcb8b2a97a2e diff --git a/lib/mudpy/misc.py b/lib/mudpy/misc.py index 7e8e612..9e6dd99 100644 --- a/lib/mudpy/misc.py +++ b/lib/mudpy/misc.py @@ -2230,8 +2230,9 @@ def command_show(actor, parameters): else: try: message = repr(eval(" ".join(arguments[1:]))) - except: - message = "Your expression raised an exception!" + except Exception as e: + message = ("$(red)Your expression raised an exception...$(eol)" + "$(eol)$(bld)%s$(nrm)" % e) elif arguments[0] == "log": if len(arguments) == 4: if re.match("^\d+$", arguments[3]) and int(arguments[3]) >= 0: