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/06/13 19:54:59 UTC
[2/3] incubator-mynewt-newt git commit: Don't dump stacks for cmd
line problems
Don't dump stacks for cmd line problems
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/0e592c9a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/0e592c9a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/0e592c9a
Branch: refs/heads/develop
Commit: 0e592c9a2bb0ab1271f245c83e24e7e15e2671c9
Parents: 7adc9d3
Author: spoonofpower <sp...@gmail.com>
Authored: Fri Jun 10 17:09:46 2016 -0700
Committer: spoonofpower <sp...@gmail.com>
Committed: Fri Jun 10 17:13:33 2016 -0700
----------------------------------------------------------------------
newtmgr/cli/usage.go | 4 ----
1 file changed, 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/0e592c9a/newtmgr/cli/usage.go
----------------------------------------------------------------------
diff --git a/newtmgr/cli/usage.go b/newtmgr/cli/usage.go
index 9b72c8a..fa19311 100644
--- a/newtmgr/cli/usage.go
+++ b/newtmgr/cli/usage.go
@@ -23,16 +23,12 @@ import (
"fmt"
"os"
- "mynewt.apache.org/newt/util"
-
"github.com/spf13/cobra"
)
func nmUsage(cmd *cobra.Command, err error) {
if err != nil {
- sErr := err.(*util.NewtError)
fmt.Printf("ERROR: %s\n", err.Error())
- fmt.Fprintf(os.Stderr, "[DEBUG] %s", sErr.StackTrace)
}
if cmd != nil {