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 2015/11/04 20:38:36 UTC

incubator-mynewt-newt git commit: ShellInteractiveCommand() was not returning NewtError.

Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/master 0c3bbfa55 -> 04297b745


ShellInteractiveCommand() was not returning NewtError.


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

Branch: refs/heads/master
Commit: 04297b7452cd3381f0570a3e77757fac08a9f92f
Parents: 0c3bbfa
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Nov 4 11:37:32 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Nov 4 11:37:32 2015 -0800

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


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/04297b74/cli/util.go
----------------------------------------------------------------------
diff --git a/cli/util.go b/cli/util.go
index 0501ef0..c50a7fb 100644
--- a/cli/util.go
+++ b/cli/util.go
@@ -236,14 +236,14 @@ func ShellInteractiveCommand(cmdStr []string) error {
 	proc, err := os.StartProcess(cmdStr[0], cmdStr, &pa)
 	if err != nil {
 		signal.Stop(c)
-		return err
+		return NewNewtError(err.Error())
 	}
 
 	// Release and exit
 	_, err = proc.Wait()
 	if err != nil {
 		signal.Stop(c)
-		return err
+		return NewNewtError(err.Error())
 	}
 	signal.Stop(c)
 	return nil