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 2020/01/28 17:26:13 UTC

[mynewt-newt] 09/09: mfg: Clarify error message

This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git

commit 2c4af9d3c283853810ce71acbc2719c6c071e660
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Mon Jan 27 11:40:40 2020 -0800

    mfg: Clarify error message
---
 newt/mfg/build.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/newt/mfg/build.go b/newt/mfg/build.go
index 7f76447..bf23219 100644
--- a/newt/mfg/build.go
+++ b/newt/mfg/build.go
@@ -155,7 +155,8 @@ func calcBsp(dm DecodedMfg,
 	}
 
 	if len(bspMap) == 0 {
-		return nil, util.FmtNewtError("at least one target required")
+		return nil, util.FmtNewtError(
+			"failed to determine BSP: no targets and no \"bsp\" field")
 	}
 
 	if len(bspMap) > 1 {