nickva commented on code in PR #5686:
URL: https://github.com/apache/couchdb/pull/5686#discussion_r2411106171
##########
src/fabric/src/fabric_rpc.erl:
##########
@@ -499,7 +511,12 @@ get_node_seqs(Db, Nodes) ->
[{binary_to_existing_atom(N), S} || {N, S} <- NodeBinSeqs].
get_or_create_db(DbName, Options) ->
- mem3_util:get_or_create_db_int(DbName, Options).
+ try
+ mem3_util:get_or_create_db_int(DbName, Options)
+ catch
+ throw:{error, missing_target} ->
+ erlang:error(database_does_not_exist, [DbName])
Review Comment:
Technically we don't need the `erlang:` prefix, however the rest of the code
uses that so let's keep it for consistency with the rest of code-base. We can
go through and clean them up altogether later.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]