-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send JSON in debug mode if the request wants JSON.
Currently, when making AJAX requests with debug mode enabled, uncaught exceptions will display the full debug HTML page. With this change, the exceptions will be rendered as JSON for easier viewing in the console / dev tools.
- Loading branch information
1 parent
a1226cb
commit 5225389
Showing
1 changed file
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters