diff options
author | Siri Hansen <[email protected]> | 2012-03-12 17:21:33 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2012-03-19 09:48:54 +0100 |
commit | 50bc03bf5cc4b55644d164819d8c58bef966e278 (patch) | |
tree | e4330cfa505268e2d380471b9a16c984f0664674 /lib/reltool/src/reltool_utils.erl | |
parent | 048c28bc6c75964c3ee7930f5a1aecae92843c88 (diff) | |
download | otp-50bc03bf5cc4b55644d164819d8c58bef966e278.tar.gz otp-50bc03bf5cc4b55644d164819d8c58bef966e278.tar.bz2 otp-50bc03bf5cc4b55644d164819d8c58bef966e278.zip |
[reltool] Always return warnings as flat strings
OTP-9794
Diffstat (limited to 'lib/reltool/src/reltool_utils.erl')
-rw-r--r-- | lib/reltool/src/reltool_utils.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/reltool/src/reltool_utils.erl b/lib/reltool/src/reltool_utils.erl index 2d766224d9..9cf9bd1418 100644 --- a/lib/reltool/src/reltool_utils.erl +++ b/lib/reltool/src/reltool_utils.erl @@ -30,7 +30,7 @@ get_item/1, get_items/1, get_selected_items/3, select_items/3, select_item/2, - safe_keysearch/5, print/4, add_warning/2, + safe_keysearch/5, print/4, add_warning/3, create_dir/1, list_dir/1, read_file_info/1, write_file_info/2, read_file/1, write_file/2, @@ -402,7 +402,8 @@ print(X, X, Format, Args) -> print(_, _, _, _) -> ok. -add_warning({ok,Warnings}, Warning) -> +add_warning(Format, Args, {ok,Warnings}) -> + Warning = lists:flatten(io_lib:format(Format,Args)), case lists:member(Warning,Warnings) of true -> {ok,Warnings}; |