aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_util.erl
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2015-05-18 19:26:52 -0700
committerJordan Wilberding <[email protected]>2015-05-18 19:26:52 -0700
commitfbd2317b3f26f7cbd96a0f944f7ef3a3702e1f67 (patch)
treeb08022b0d300f712075cb068805698dcf90aa90a /src/rlx_util.erl
parenta4758ae461ef1e0ba9db3ad58abbe89fe235dac4 (diff)
parent3294dd5ae6af61ec34de44ea5f8d8bd4904d74dc (diff)
downloadrelx-fbd2317b3f26f7cbd96a0f944f7ef3a3702e1f67.tar.gz
relx-fbd2317b3f26f7cbd96a0f944f7ef3a3702e1f67.tar.bz2
relx-fbd2317b3f26f7cbd96a0f944f7ef3a3702e1f67.zip
Merge pull request #344 from tsloughter/fix_config_format
don't return value as string if not a printable string
Diffstat (limited to 'src/rlx_util.erl')
-rw-r--r--src/rlx_util.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rlx_util.erl b/src/rlx_util.erl
index 2251b4f..8a54ae6 100644
--- a/src/rlx_util.erl
+++ b/src/rlx_util.erl
@@ -133,7 +133,12 @@ is_error(_) ->
optional_to_string(undefined) ->
"";
optional_to_string(Value) when is_list(Value) ->
- Value.
+ case io_lib:printable_list(Value) of
+ true ->
+ Value;
+ false ->
+ ""
+ end.
%% @doc expand wildcards and names in the given paths
-spec wildcard_paths([file:filename_all()]) -> [string()].