Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove catch exception #421

Merged
merged 4 commits into from
May 27, 2016
Merged

Remove catch exception #421

merged 4 commits into from
May 27, 2016

Conversation

Big-Shark
Copy link
Member

@Big-Shark Big-Shark commented May 26, 2016

Because this is broken -vvv and don't show stack trace

@Big-Shark Big-Shark changed the title Patch 7 Remove catch exception May 26, 2016
'[Propel] Exception caught',
'',
$e->getMessage()
), 'fg=white;bg=red');
Copy link
Member

Choose a reason for hiding this comment

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

Instead of removing the whole try block, we should rather just re-throw the exception after writing to the output.

Copy link
Member Author

@Big-Shark Big-Shark May 26, 2016

Choose a reason for hiding this comment

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

@marcj Why?
Default console error

[Propel] Exception                                                               

 text

and red color
Custom console error

[Propel] Exception caught                                                             

 text

and red color.

What is the difference? Replaced "[Propel] Exception" to "[Propel] Exception caught"?"

Copy link
Member

Choose a reason for hiding this comment

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

Well, you are right, not much of a difference. Lets merge this :)

@marcj marcj merged commit cdcb3f6 into propelorm:3.0 May 27, 2016
@marcj
Copy link
Member

marcj commented May 27, 2016

Thanks!

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