make explain.py properly report errors

This commit is contained in:
Ryan Hitchman 2009-11-20 17:30:10 -07:00
parent a07333cbad
commit 1e9e844f86
1 changed files with 3 additions and 5 deletions

View File

@ -10,8 +10,6 @@ def explain(inp):
inp = inp.encode('utf8', 'ignore')
try:
result = explain_c_declaration(inp.rstrip())
except e:
result = str(e)
return result
return explain_c_declaration(inp.rstrip())
except Exception, e:
return 'error: %s' % e