diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-10-25 18:18:04 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-10-25 18:18:04 +0300 |
commit | 02cb3d93fd770ebd77497b482249a12ec8c51ab6 (patch) | |
tree | 0a306ca76c1258f720321258c96b2beeb5dd23ca | |
parent | Handle the case when JWT key file contains JWK set (diff) |
Don't lowercase first letter in reason string
Diffstat (limited to '')
-rw-r--r-- | rebar.config | 2 | ||||
-rw-r--r-- | src/econf.erl | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/rebar.config b/rebar.config index 703d6686..c8497697 100644 --- a/rebar.config +++ b/rebar.config @@ -27,7 +27,7 @@ {idna, ".*", {git, "https://github.com/benoitc/erlang-idna", {tag, "6.0.0"}}}, {xmpp, ".*", {git, "https://github.com/processone/xmpp", {tag, "1.4.2"}}}, {fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.21"}}}, - {yconf, ".*", {git, "https://github.com/processone/yconf", {tag, "1.0.1"}}}, + {yconf, ".*", {git, "https://github.com/processone/yconf", "f5f1ab4"}}, {jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}}, {p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.5"}}}, {pkix, ".*", {git, "https://github.com/processone/pkix", {tag, "1.0.4"}}}, diff --git a/src/econf.erl b/src/econf.erl index 994f7e96..6b21b111 100644 --- a/src/econf.erl +++ b/src/econf.erl @@ -148,8 +148,7 @@ format_error({bad_enum, Known, Bad} = Why, Ctx) -> format_error({bad_yaml, _, _} = Why, _) -> format_error(Why); format_error(Reason, Ctx) -> - [H|T] = format_error(Reason), - yconf:format_ctx(Ctx) ++ ": " ++ [string:to_lower(H)|T]. + yconf:format_ctx(Ctx) ++ ": " ++ format_error(Reason). format_error({bad_db_type, _, Atom}) -> format("unsupported database: ~ts", [Atom]); |