summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Andrikonis <julius@erisata.lt>2018-01-29 11:15:02 +0200
committerJulius Andrikonis <julius@erisata.lt>2018-01-29 11:15:38 +0200
commit2276f85150d6274961fd007ce688f71591a47ada (patch)
treee9f240cd777674750ca453c955d03d9a5128b678
parent66c175d8e1bf724b6aac15da60b5e6b79e43e66d (diff)
downloadrebar-2276f85150d6274961fd007ce688f71591a47ada.tar.gz
Log out success message with newlines
The raw log file is split into lines to check for errors. However the logged message should contain newlines for easier reading.
-rw-r--r--THANKS1
-rw-r--r--src/rebar_ct.erl2
2 files changed, 2 insertions, 1 deletions
diff --git a/THANKS b/THANKS
index ab7935c..943ad94 100644
--- a/THANKS
+++ b/THANKS
@@ -150,3 +150,4 @@ John Daily
Yury Gargay
Frank Hunleth
Matwey Kornilov
+Julius Andrikonis
diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl
index b27f661..c033c58 100644
--- a/src/rebar_ct.erl
+++ b/src/rebar_ct.erl
@@ -193,7 +193,7 @@ check_log(Config,RawLogFilename,Fun) ->
?FAIL;
true ->
- Fun(Msg)
+ Fun(string:join(Msg, "\n"))
end.