MYNEWT-622; use util to generate error message.

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

Branch: refs/heads/mynewt_1_0_0
Commit: 3868c59ba62c261d5af5eb0844ccc128a78e1f5e
Parents: d6502a3
Author: Marko Kiiskila <[email protected]>
Authored: Sat Feb 11 12:01:30 2017 -0800
Committer: Marko Kiiskila <[email protected]>
Committed: Mon Mar 6 13:29:58 2017 -0800

----------------------------------------------------------------------
 newtmgr/cli/image.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/3868c59b/newtmgr/cli/image.go
----------------------------------------------------------------------
diff --git a/newtmgr/cli/image.go b/newtmgr/cli/image.go
index 10ac1f0..8a3f692 100644
--- a/newtmgr/cli/image.go
+++ b/newtmgr/cli/image.go
@@ -21,7 +21,6 @@ package cli
 
 import (
        "encoding/hex"
-       "errors"
        "fmt"
        "io/ioutil"
        "os"
@@ -390,7 +389,7 @@ func coreConvertCmd(cmd *cobra.Command, args []string) {
 
 func coreDownloadCmd(cmd *cobra.Command, args []string) {
        if len(args) < 1 {
-               nmUsage(cmd, errors.New("Need to specify target filename to 
download"))
+               nmUsage(cmd, util.NewNewtError("Need to specify filename for 
core"))
                return
        }
 

Reply via email to