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

Errors in the delayed response makes debugging hard #8

Open
miyagawa opened this issue Aug 27, 2010 · 1 comment
Open

Errors in the delayed response makes debugging hard #8

miyagawa opened this issue Aug 27, 2010 · 1 comment

Comments

@miyagawa
Copy link
Owner

Run this code with Twiggy, and your browser gets 400 Bad Response where developers have no idea what was actually causing errors.

my $app = sub {
    my $env = shift;
    return sub {
        my $respond = shift;
        die "Blah";
    };
};

Imagine there's a typo or any other runtime errors in between. The error messages should be useful for debugging, but the current behavior is that the error is caught by Twiggy server and thrown away. At least it should make it a 500 response instead of 400 and print the error to psgi.errors.

@bbrtj
Copy link

bbrtj commented Jan 25, 2020

Almost 10 years later I encounter this issue while writing websocket code for Twiggy. Any chance of fixing this?

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

2 participants