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

add $postgres_error variable #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

niquola
Copy link

@niquola niquola commented Mar 13, 2015

No description provided.

@0x6e6562
Copy link

Could you give an example of how you would use this?

@niquola
Copy link
Author

niquola commented Mar 14, 2015

This patch is implementation of ideas discussed in #8.
$postgres_error variable could be used by other modules to report error:

add_after_body $postgres_error;
more_set_headers "X-Error: $postgres_error";

In our case, we've created simple postgresql web console based on ngx_postgres and showing error messages is critical for UX.

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