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

App::abort(404) not listening to custom error handler #48

Closed
steve228uk opened this issue Jan 15, 2013 · 2 comments
Closed

App::abort(404) not listening to custom error handler #48

steve228uk opened this issue Jan 15, 2013 · 2 comments

Comments

@steve228uk
Copy link

I'm using App::abort(404); to force a 404 however I'm getting the standard stack trace and Laravel doesn't seem to listen to the following error handler I've added to app/start/global.php

App::missing(function($exception)
{
    return View::make('errors.404');
});
@JoostK
Copy link
Contributor

JoostK commented Jan 15, 2013

When using App::abort a general HttpException is thrown, not the required NotFoundHttpException. I agree that App::abort should convert from error codes to proper specialized Exceptions.

@taylorotwell
Copy link
Member

Fixed.

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

No branches or pull requests

3 participants