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 2019/12/18 01:55:25 UTC

[mynewt-newt] 02/02: Include repo name in compat map warning

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 33309584c5d00547f9809323a765358c5dcb9abc
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Tue Dec 17 16:49:38 2019 -0800

    Include repo name in compat map warning
    
    If a repo's current version is missing from its compatibility map, newt
    produces the following warning:
    
        WARNING: Repo version missing from compatibility map
    
    This commit adds the name of the culprit repo to the message.
---
 newt/repo/repo.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newt/repo/repo.go b/newt/repo/repo.go
index 4f13a7c..6aedd56 100644
--- a/newt/repo/repo.go
+++ b/newt/repo/repo.go
@@ -539,7 +539,7 @@ func (r *Repo) CheckNewtCompatibility(
 	if !ok {
 		// Unknown repo version.
 		return compat.NEWT_COMPAT_WARN,
-			"Repo version missing from compatibility map"
+			r.Name() + ": Repo version missing from compatibility map"
 	}
 
 	code, text := tbl.CheckNewtVer(nvers)