summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <wohali@users.noreply.github.com>2020-01-07 22:47:24 -0500
committerGitHub <noreply@github.com>2020-01-07 22:47:24 -0500
commitd6f55ab3b2967b4c10da198919b860a997e880a1 (patch)
tree98ccbb50b51abae5aebb5195045bb8e0f00b0b7b
parent28dbf7e38f2cd86fa2ac5937835a5c4a96dd6aa6 (diff)
downloadcouchdb-d6f55ab3b2967b4c10da198919b860a997e880a1.tar.gz
Halt on no admin to avoid crash dump (#2417)
-rw-r--r--src/couch/src/couch_sup.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couch/src/couch_sup.erl b/src/couch/src/couch_sup.erl
index ac117ea43..c4a2e6303 100644
--- a/src/couch/src/couch_sup.erl
+++ b/src/couch/src/couch_sup.erl
@@ -99,7 +99,7 @@ assert_admins() ->
++ "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%~n", []),
% Wait a second so the log message can make it to the log
timer:sleep(500),
- throw(admin_account_required);
+ erlang:halt(1);
_ -> ok
end.