From 79c98cc9489d6779b37d48a2112fa452b64edc3f Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 30 Dec 2020 17:40:35 +0100 Subject: Show available mappings if getByName fails --- scripts/Util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/Util.py') diff --git a/scripts/Util.py b/scripts/Util.py index 708ace84417..dce5c427f3b 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -807,7 +807,7 @@ class Mapping(object): @classmethod def getByName(self, name): if not name in self.mappings: - raise RuntimeError("unknown mapping `{0}'".format(name)) + raise RuntimeError("unknown mapping `{0}', available mappings `{1}'".format(name, self.mappings)) return self.mappings.get(name) @classmethod -- cgit v1.2.3