diff options
author | Mickael Remond <mremond@process-one.net> | 2016-03-31 17:34:50 +0200 |
---|---|---|
committer | Mickael Remond <mremond@process-one.net> | 2016-03-31 17:34:58 +0200 |
commit | ef2e2e45b3169ba4bd68df5359b32f5e89239575 (patch) | |
tree | b42651f65212066edd3ea536d335259b7b9ab4db /src/mod_http_api.erl | |
parent | Force protobuffs version to be able to use new meck release (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 5775b215..60196f65 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) -> |