Quote property name in error.py's JSON api response.

This commit is contained in:
David Hu
2011-12-15 16:08:49 -08:00
committed by Max Goodman
parent d48284c4cf
commit 0bc8cce932

View File

@@ -175,7 +175,7 @@ class ErrorController(RedditController):
c.response.content = str(code)
return c.response
elif c.render_style == "api":
c.response.content = "{error: %s}" % code
c.response.content = "{\"error\": %s}" % code
return c.response
elif takedown and code == 404:
link = Link._by_fullname(takedown)