aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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()].