summaryrefslogtreecommitdiff
path: root/src/econf.erl
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2019-10-25 18:18:04 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2019-10-25 18:18:04 +0300
commit02cb3d93fd770ebd77497b482249a12ec8c51ab6 (patch)
tree0a306ca76c1258f720321258c96b2beeb5dd23ca /src/econf.erl
parentHandle the case when JWT key file contains JWK set (diff)
Don't lowercase first letter in reason string
Diffstat (limited to 'src/econf.erl')
-rw-r--r--src/econf.erl3
1 files changed, 1 insertions, 2 deletions
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]);