Skip to content

Conversation

@eduardosoliv
Copy link
Contributor

On ExceptionController getExceptionMessage() fallback to 'error' if the status code is not recognized.

On getParameters() code I notice this:

'status_text' => array_key_exists($code, Response::$statusTexts) ? Response::$statusTexts[$code] : "error",

I think is good idea to do the same on getExceptionMessage(), this PR is related with the code introduced on
#647

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you assign this var before the if statement

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no good reason, already changed it

lsmith77 added a commit that referenced this pull request Jan 6, 2014
…-fallback-msg

On ExceptionController getExceptionMessage() fallback to error
@lsmith77 lsmith77 merged commit 5218769 into FriendsOfSymfony:master Jan 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants