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

Improved error message when config file is not found #3653

Open
steve-chavez opened this issue Jul 10, 2024 · 0 comments
Open

Improved error message when config file is not found #3653

steve-chavez opened this issue Jul 10, 2024 · 0 comments
Labels
messages user-facing error/informative messages

Comments

@steve-chavez
Copy link
Member

Problem

Right now it shows:

postgrest: Fatal Error {fatalErrorMessage = "Error in config postgrest.conf: open File: does not exist (No such file or directory)"}

Because of the wrapping looks like users don't read it. See #3649.

Solution

Remove the Fatal Error wrapping.

As an extra, perhaps we can do a fuzzy search for all files under the current dir and provide a hint? (similar to how we suggest similar function names with RPC) If we don't have privileges then the hint will not show.

@steve-chavez steve-chavez added the messages user-facing error/informative messages label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
messages user-facing error/informative messages
Development

No branches or pull requests

1 participant