diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-06-24 20:32:34 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-06-24 20:32:34 +0300 |
commit | a3e0cbbdd8a3ec4bbfa17e5147c59978021fc0b5 (patch) | |
tree | 6a00378671ffaee338317c403b46b6a5ecad5ce1 /src/mod_http_api.erl | |
parent | 370226417ad9524dae101595fd955f69df75ec3c (diff) |
Make logging messages more consistent
Diffstat (limited to 'src/mod_http_api.erl')
-rw-r--r-- | src/mod_http_api.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl index 28228f3e5..4dd48158a 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -400,7 +400,7 @@ format_arg({Elements}, _ when TElDef == binary; TElDef == string -> <<"">>; _ -> - ?ERROR_MSG("missing field ~p in tuple ~p", [TElName, Elements]), + ?ERROR_MSG("Missing field ~p in tuple ~p", [TElName, Elements]), throw({invalid_parameter, io_lib:format("Missing field ~w in tuple ~w", [TElName, Elements])}) end @@ -418,7 +418,7 @@ format_arg(Arg, string) when is_binary(Arg) -> binary_to_list(Arg); format_arg(undefined, binary) -> <<>>; format_arg(undefined, string) -> ""; format_arg(Arg, Format) -> - ?ERROR_MSG("don't know how to format Arg ~p for format ~p", [Arg, Format]), + ?ERROR_MSG("Don't know how to format Arg ~p for format ~p", [Arg, Format]), throw({invalid_parameter, io_lib:format("Arg ~w is not in format ~w", [Arg, Format])}). |