Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop 60306bbac -> 4789254d7


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

Branch: refs/heads/develop
Commit: 43f189c0951f52b10185757a9d3ea8f38e95a5de
Parents: 60306bb
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Sat Feb 11 12:01:30 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Sat Feb 11 12:01:30 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/43f189c0/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