aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reltool/src/reltool_utils.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-03-12 17:21:33 +0100
committerSiri Hansen <[email protected]>2012-03-19 09:48:54 +0100
commit50bc03bf5cc4b55644d164819d8c58bef966e278 (patch)
treee4330cfa505268e2d380471b9a16c984f0664674 /lib/reltool/src/reltool_utils.erl
parent048c28bc6c75964c3ee7930f5a1aecae92843c88 (diff)
downloadotp-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.erl5
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};