You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2017/08/25 21:44:07 UTC

[mynewt-newt] branch master updated: newt - Fix empty build error.

This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git


The following commit(s) were added to refs/heads/master by this push:
     new 7734135  newt - Fix empty build error.
7734135 is described below

commit 773413552ff0e4e7d5a04c526da089a33c21680f
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Fri Aug 25 14:43:46 2017 -0700

    newt - Fix empty build error.
---
 newt/resolve/resolve.go | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/newt/resolve/resolve.go b/newt/resolve/resolve.go
index 0286cd5..c037443 100644
--- a/newt/resolve/resolve.go
+++ b/newt/resolve/resolve.go
@@ -618,7 +618,12 @@ func (res *Resolution) ErrorText() string {
 
 	str += res.Cfg.ErrorText()
 
-	return strings.TrimSpace(str) + "\n"
+	str = strings.TrimSpace(str)
+	if str != "" {
+		str += "\n"
+	}
+
+	return str
 }
 
 func (res *Resolution) WarningText() string {

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" <co...@mynewt.apache.org>'].