[PATCH 2/5] test: Add trailing newline to error messages

Subject: [PATCH 2/5] test: Add trailing newline to error messages

Date: Sun, 14 Nov 2010 22:54:29 +0100

To: notmuch@notmuchmail.org

Cc:

From: Michal Sojka


The newline was removed from say_color in commit 222926ab to allow
printing test status in the beginning of the line. Error messages are
never followed by other text so we add the newline to error function.
---
 test/test-lib.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/test-lib.sh b/test/test-lib.sh
index 68c9cf8..dce9077 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -144,7 +144,7 @@ else
 fi
 
 error () {
-	say_color error "error: $*"
+	say_color error "error: $*\n"
 	GIT_EXIT_OK=t
 	exit 1
 }
-- 
1.7.2.3


Thread: