You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/07/11 23:46:16 UTC

incubator-mynewt-newt git commit: newt - fix crash caused by test command.

Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop a996d13f7 -> 224eb6997


newt - fix crash caused by test command.

Newt was always logging the app name.  This was a problem when the "newt
test" command was used, because there is no app in that case!


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

Branch: refs/heads/develop
Commit: 224eb6997bebd174e21b7c50fab05480edc6aedf
Parents: a996d13
Author: Christopher Collins <cc...@apache.org>
Authored: Mon Jul 11 16:45:15 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Mon Jul 11 16:45:15 2016 -0700

----------------------------------------------------------------------
 newt/builder/build.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/224eb699/newt/builder/build.go
----------------------------------------------------------------------
diff --git a/newt/builder/build.go b/newt/builder/build.go
index 2c67eac..d4fb2ec 100644
--- a/newt/builder/build.go
+++ b/newt/builder/build.go
@@ -384,8 +384,8 @@ func (b *Builder) PrepBuild() error {
 	baseCi.AddCompilerInfo(targetCi)
 
 	// App flags.
-	log.Debugf("Generating build flags for app %s", appPkg.FullName())
 	if appBpkg != nil {
+		log.Debugf("Generating build flags for app %s", appPkg.FullName())
 		appCi, err := appBpkg.CompilerInfo(b)
 		if err != nil {
 			return err