make explain.py properly report errors
This commit is contained in:
parent
a07333cbad
commit
1e9e844f86
|
@ -10,8 +10,6 @@ def explain(inp):
|
||||||
inp = inp.encode('utf8', 'ignore')
|
inp = inp.encode('utf8', 'ignore')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
result = explain_c_declaration(inp.rstrip())
|
return explain_c_declaration(inp.rstrip())
|
||||||
except e:
|
except Exception, e:
|
||||||
result = str(e)
|
return 'error: %s' % e
|
||||||
|
|
||||||
return result
|
|
||||||
|
|
Loading…
Reference in New Issue