Make json error message more specific
authorSasha Laundy <sasha.laundy@gmail.com>
Mon, 8 Apr 2013 17:03:13 +0000 (13:03 -0400)
committerSasha Laundy <sasha.laundy@gmail.com>
Mon, 8 Apr 2013 17:03:13 +0000 (13:03 -0400)
docs/user/quickstart.rst

index d046640e31027d287ea6a3aef14d77e2cd680d34..cb4ef57988f615946e9993946b5aee47fb5e4dea 100644 (file)
@@ -131,7 +131,8 @@ There's also a builtin JSON decoder, in case you're dealing with JSON data::
     >>> r.json()
     [{u'repository': {u'open_issues': 0, u'url': 'https://github.com/...
 
-In case the JSON decoding fails, ``r.json`` raises an exception: ``ValueError:
+In case the JSON decoding fails, ``r.json`` raises an exception. For example, if
+the response gets a 401 (Unauthorized), attempting ``r.json`` raises ``ValueError:
 No JSON object could be decoded``