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

hotfix(dao) ensure 'init()' errors are prefixed with DB name #3411

Merged
merged 1 commit into from
Apr 24, 2018

Conversation

thibaultcha
Copy link
Member

This fixes a regression introduced in #3310.

If the database is unreachabel when Kong start, it is our policy that
the error message be prefixed with [postgres error] (in the case of
PostgreSQL) to help the user troubleshoot the issue.

Prior to this patch, this behavior was changed in #3310, since it
introduced a call to init() in the CLI. Users would see:

$ kong start
Error: connection refused

Instead of:

$ kong start
Error: [postgres error] could not retrieve server_version: connection refused

This fixes a regression introduced in #3310.

If the database is unreachabel when Kong start, it is our policy that
the error message be prefixed with `[postgres error]` (in the case of
PostgreSQL) to help the user troubleshoot the issue.

Prior to this patch, this behavior was changed in #3310, since it
introduced a call to `init()` in the CLI. Users would see:
```
$ kong start
Error: connection refused
```

Instead of:
```
$ kong start
Error: [postgres error] could not retrieve server_version: connection refused
```
@thibaultcha thibaultcha merged commit 4973a62 into master Apr 24, 2018
@thibaultcha thibaultcha deleted the hotfix/db-prefix-error-message branch April 24, 2018 02:40
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.

1 participant