Permalink
Browse files

Add JSON parse error data to error (bug 714159)

  • Loading branch information...
1 parent ae0ebeb commit cc029e0ef56b10641b94734fa8fc929ec99bf501 @mattbasta committed Nov 1, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 appvalidator/webapp.py
View
@@ -22,12 +22,13 @@ def detect_webapp_string(err, data):
u_data = unicodehelper.decode(data)
webapp = json.loads(u_data)
- except ValueError:
+ except ValueError as exc:
err.error(
err_id=("webapp", "detect_webapp", "parse_error"),
error="JSON Parse Error",
- description="The webapp extension could not be parsed due to a "
- "syntax error in the JSON.")
+ description=["The webapp extension could not be parsed due to a "
+ "syntax error in the JSON.",
+ unicode(exc)])
else:
ws = WebappSpec(webapp, err)

0 comments on commit cc029e0

Please sign in to comment.