]> git.notmuchmail.org Git - notmuch/commitdiff
test: Add trailing newline to error messages
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 14 Nov 2010 21:54:29 +0000 (22:54 +0100)
committerCarl Worth <cworth@cworth.org>
Tue, 16 Nov 2010 19:28:06 +0000 (11:28 -0800)
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

index 68c9cf8a499e105f17112b3064c249665570c53a..dce9077d44fad37ef7d10be2ddc231500bedb3fc 100644 (file)
@@ -144,7 +144,7 @@ else
 fi
 
 error () {
-       say_color error "error: $*"
+       say_color error "error: $*\n"
        GIT_EXIT_OK=t
        exit 1
 }