diff options
author | Mickael Remond <mremond@process-one.net> | 2016-03-31 18:34:50 +0300 |
---|---|---|
committer | Mickael Remond <mremond@process-one.net> | 2016-03-31 18:34:58 +0300 |
commit | ef2e2e45b3169ba4bd68df5359b32f5e89239575 (patch) | |
tree | b42651f65212066edd3ea536d335259b7b9ab4db /src/mod_http_api.erl | |
parent | 3290a5ff15669df3078905a330401db986badb17 (diff) |
Fix failing tests
Diffstat (limited to 'src/mod_http_api.erl')
-rw-r--r-- | src/mod_http_api.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl index 5775b215d..60196f650 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -309,6 +309,8 @@ handle(Call, Auth, Args, Version) when is_atom(Call), is_list(Args) -> {401, jlib:atom_to_binary(Why)}; throw:{not_allowed, Msg} -> {401, iolist_to_binary(Msg)}; + throw:{error, account_unprivileged} -> + {401, iolist_to_binary(<<"Unauthorized: Account Unpriviledged">>)}; throw:{invalid_parameter, Msg} -> {400, iolist_to_binary(Msg)}; throw:{error, Why} when is_atom(Why) -> |