mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject [3/4] incubator-mynewt-newt git commit: Remove debug printf.
Date Tue, 15 Mar 2016 02:29:59 GMT
Remove debug printf.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/2f21310f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/2f21310f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/2f21310f

Branch: refs/heads/master
Commit: 2f21310f8ff5bcc7d9c99626bfbd558aa1cd34ce
Parents: be2c37a
Author: Christopher Collins <ccollins@apache.org>
Authored: Mon Mar 14 19:23:43 2016 -0700
Committer: Christopher Collins <ccollins@apache.org>
Committed: Mon Mar 14 19:23:43 2016 -0700

----------------------------------------------------------------------
 newt/builder/load.go | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/2f21310f/newt/builder/load.go
----------------------------------------------------------------------
diff --git a/newt/builder/load.go b/newt/builder/load.go
index 9b82362..a517b58 100644
--- a/newt/builder/load.go
+++ b/newt/builder/load.go
@@ -59,9 +59,12 @@ func (b *Builder) Load() error {
 		downloadScript, bspPath, binBaseName, featureString)
 
 	rsp, err := util.ShellCommand(downloadCmd)
-	fmt.Printf("%s", rsp)
+	if err != nil {
+		util.StatusMessage(util.VERBOSITY_DEFAULT, "%s", rsp)
+		return err
+	}
 
-	return err
+	return nil
 }
 
 func (b *Builder) Debug() error {


Mime
View raw message