You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/04/28 02:09:41 UTC

[14/32] incubator-mynewt-newt git commit: Don't print out command usage on build errors.

Don't print out command usage on build errors.


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/bb2b7fb7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/bb2b7fb7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/bb2b7fb7

Branch: refs/heads/master
Commit: bb2b7fb7d6e77eae1a9f97e6e5690f59071df11c
Parents: 9fcac24
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Apr 4 12:03:47 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Apr 4 12:03:47 2016 -0700

----------------------------------------------------------------------
 newt/cli/run_cmds.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/bb2b7fb7/newt/cli/run_cmds.go
----------------------------------------------------------------------
diff --git a/newt/cli/run_cmds.go b/newt/cli/run_cmds.go
index a90f9f9..4784d28 100644
--- a/newt/cli/run_cmds.go
+++ b/newt/cli/run_cmds.go
@@ -44,12 +44,12 @@ func runRunCmd(cmd *cobra.Command, args []string) {
 
 	b, err := builder.NewBuilder(t)
 	if err != nil {
-		NewtUsage(cmd, err)
+		NewtUsage(nil, err)
 	}
 
 	err = b.Build()
 	if err != nil {
-		NewtUsage(cmd, err)
+		NewtUsage(nil, err)
 	}
 
 	/*