You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2022/06/27 13:08:34 UTC

[mynewt-newt] branch master updated: Fix misleading error message for mfg raw

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 1cebf49  Fix misleading error message for mfg raw
1cebf49 is described below

commit 1cebf496abfc31f524e973936325dd58c1fc7fcc
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Mon Jun 27 08:24:48 2022 +0200

    Fix misleading error message for mfg raw
    
    Code checked existence of "name" field in yaml file
    and when not found reports that "filename" was missing.
    
    Now correct missing filed is reported.
---
 newt/mfg/decode.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newt/mfg/decode.go b/newt/mfg/decode.go
index bcbb94d..392395f 100644
--- a/newt/mfg/decode.go
+++ b/newt/mfg/decode.go
@@ -225,7 +225,7 @@ func decodeRaw(yamlRaw interface{}, entryIdx int) (DecodedRaw, error) {
 	filenameVal := kv["name"]
 	if filenameVal == nil {
 		return dr, util.FmtNewtError(
-			"mfg raw entry missing required field \"filename\"")
+			"mfg raw entry missing required field \"name\"")
 	}
 	dr.Filename = cast.ToString(filenameVal)