diff options
author | Joan Touzet <wohali@users.noreply.github.com> | 2020-01-07 22:47:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 22:47:24 -0500 |
commit | d6f55ab3b2967b4c10da198919b860a997e880a1 (patch) | |
tree | 98ccbb50b51abae5aebb5195045bb8e0f00b0b7b | |
parent | 28dbf7e38f2cd86fa2ac5937835a5c4a96dd6aa6 (diff) | |
download | couchdb-d6f55ab3b2967b4c10da198919b860a997e880a1.tar.gz |
Halt on no admin to avoid crash dump (#2417)
-rw-r--r-- | src/couch/src/couch_sup.erl | 2 |
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. |