Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9752a76

Browse filesBrowse files
committed
feature #11078 [WIP] [TwigBundle] [Exception] Make return value similar to error.json.twig (clemens-tolboom)
This PR was squashed before being merged into the 2.6-dev branch (closes #11078). Discussion ---------- [WIP] [TwigBundle] [Exception] Make return value similar to error.json.twig | Q | A | ------------- | --- | Bug fix? | I guess this is a bug | New feature? | The exception structure changes for the default | BC breaks? | The exception structure changes for the default | Deprecations? | [yes|no] | Tests pass? | [yes|no] | Fixed tickets | | License | MIT | Doc PR | The result for `error.json.twig` and `exception.json.twig` differ making the client forced to check for it's result. We think the structure should be the same to make the ie a javascript client try to respond similar for --env=dev|prod Commits ------- 4a59f98 [WIP] [TwigBundle] [Exception] Make return value similar to error.json.twig
2 parents e5e6f4d + 4a59f98 commit 9752a76
Copy full SHA for 9752a76

File tree

Expand file treeCollapse file tree

2 files changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-1
lines changed

‎src/Symfony/Bundle/TwigBundle/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
2.6.0
5+
-----
6+
7+
* [BC BREAK] changed exception.json.twig to match same structure as error.json.twig making clients independent of runtime environment.
8+
49
2.3.0
510
-----
611

+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{ exception.toarray|json_encode|raw }}
1+
{{ { 'error': { 'code': status_code, 'message': status_text, 'exception': exception.toarray } }|json_encode|raw }}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.