You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "nickva (via GitHub)" <gi...@apache.org> on 2023/10/04 19:41:02 UTC
[PR] Fix incorrect raising of database_does_not_exist error [couchdb]
nickva opened a new pull request, #4794:
URL: https://github.com/apache/couchdb/pull/4794
When we're raising the error with the args list [1], the format for the args is a list of arguments not a single arg. So the previous invocations of `erlang:error(database_does_not_exist, ?b2l(Id))` would produce a args list of individual database name characters [2].
[1] https://www.erlang.org/doc/man/erlang#error-2
[2] > mem3_shards:opts_for_db(<<"doesnotexit">>).
```
** exception error: database_does_not_exist
in function mem3_shards:opts_for_db/11
called as mem3_shards:opts_for_db(100,111,101,115,110,111,116,101,120,105,116)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix incorrect raising of database_does_not_exist error [couchdb]
Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva merged PR #4794:
URL: https://github.com/apache/couchdb/pull/4794
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix incorrect raising of database_does_not_exist error [couchdb]
Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on PR #4794:
URL: https://github.com/apache/couchdb/pull/4794#issuecomment-1747525314
With the fix it should look like:
```
(node1@127.0.0.1)1> mem3_shards:opts_for_db(<<"doesnotexit">>).
** exception error: database_does_not_exist
in function mem3_shards:opts_for_db/1
called as mem3_shards:opts_for_db(<<"doesnotexit">>)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org