diff options
author | Tristan Sloughter <[email protected]> | 2013-02-07 04:57:36 -0800 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2013-02-07 04:57:36 -0800 |
commit | 6734e9ec4e0dd4c0678d10e8b8e48552ffb4e995 (patch) | |
tree | 93feb4e317d35d9d69443551b83175d21a0a0808 /src/rcl_util.erl | |
parent | 60b074edbb09b43618febdf8eb50a330db2aa677 (diff) | |
parent | 35040be995d9b2f1b3b601e69a998156145e1b35 (diff) | |
download | relx-6734e9ec4e0dd4c0678d10e8b8e48552ffb4e995.tar.gz relx-6734e9ec4e0dd4c0678d10e8b8e48552ffb4e995.tar.bz2 relx-6734e9ec4e0dd4c0678d10e8b8e48552ffb4e995.zip |
Merge pull request #27 from ericbmerritt/next
lots of bug fixes
Diffstat (limited to 'src/rcl_util.erl')
-rw-r--r-- | src/rcl_util.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rcl_util.erl b/src/rcl_util.erl index a879c58..61e1392 100644 --- a/src/rcl_util.erl +++ b/src/rcl_util.erl @@ -23,6 +23,7 @@ -export([mkdir_p/1, to_binary/1, + to_string/1, is_error/1, error_reason/1, indent/1, @@ -57,6 +58,10 @@ to_binary(String) when erlang:is_list(String) -> erlang:iolist_to_binary(String); to_binary(Bin) when erlang:is_binary(Bin) -> Bin. +to_string(Atom) when erlang:is_atom(Atom) -> + erlang:atom_to_list(Atom); +to_string(Else) when erlang:is_list(Else) -> + Else. %% @doc get the reason for a particular relcool error -spec error_reason(relcool:error()) -> any(). |