From 3294dd5ae6af61ec34de44ea5f8d8bd4904d74dc Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 16 May 2015 13:03:04 -0500 Subject: don't return value as string if not a printable string --- src/rlx_util.erl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()]. -- cgit v1.2.3