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

Going fatal when /key prefix matches no keys #42

Open
chocolatkey opened this issue Jan 13, 2020 · 0 comments
Open

Going fatal when /key prefix matches no keys #42

chocolatkey opened this issue Jan 13, 2020 · 0 comments

Comments

@chocolatkey
Copy link

If searching for keys using e.g. http://localhost/key/notexist/ and no keys match, pearldb will exit with the fatal error ../src/main.c:335 - err:-30798: MDB_NOTFOUND: No matching key/data pair found which matches this line https://github.com/willemt/pearldb/blob/master/src/main.c#L335 . Wouldn't it be a lot better if it just responded with a 404?

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

1 participant