mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [1/3] incubator-mynewt-newt git commit: MYNEWT-622; use util to generate error message.
Date Sat, 11 Feb 2017 20:42:44 GMT
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 <marko@runtime.io>
Authored: Sat Feb 11 12:01:30 2017 -0800
Committer: Marko Kiiskila <marko@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
 	}
 


Mime
View raw message