summaryrefslogtreecommitdiff
path: root/src/mango/src/mango_error.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mango/src/mango_error.erl')
-rw-r--r--src/mango/src/mango_error.erl20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mango/src/mango_error.erl b/src/mango/src/mango_error.erl
index d8ae3fcbf..22cb37106 100644
--- a/src/mango/src/mango_error.erl
+++ b/src/mango/src/mango_error.erl
@@ -74,6 +74,26 @@ info(mango_cursor_text, {text_search_error, {error, Error}}) ->
<<"text_search_error">>,
fmt("~p", [Error])
};
+info(mango_cursor_nouveau, multiple_nouveau_indexes) ->
+ {
+ 400,
+ <<"multiple_nouveau_indexes">>,
+ <<"You must specify an index with the `use_index` parameter.">>
+ };
+info(mango_cursor_nouveau, {nouveau_search_error, {error, {Type, Msg}}}) when
+ is_binary(Msg)
+->
+ {
+ 500,
+ <<"nouveau_search_error">>,
+ fmt("~p: ~s", [Type, Msg])
+ };
+info(mango_cursor_nouveau, {nouveau_search_error, {error, Error}}) ->
+ {
+ 500,
+ <<"nouveau_search_error">>,
+ fmt("~p", [Error])
+ };
info(mango_fields, {invalid_fields_json, BadFields}) ->
{
400,