From 60383944f49562038871c128eef7857ba6d788f2 Mon Sep 17 00:00:00 2001 From: melak47 Date: Thu, 25 Feb 2021 20:40:00 +0100 Subject: [PATCH] add recipe name to constrained settings error --- conans/model/conan_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conans/model/conan_file.py b/conans/model/conan_file.py index 20b6a3c7e7e..077c33de2de 100644 --- a/conans/model/conan_file.py +++ b/conans/model/conan_file.py @@ -68,7 +68,8 @@ def create_settings(conanfile, settings): settings.constraint(current) return settings except Exception as e: - raise ConanInvalidConfiguration("The recipe is constraining settings. %s" % str(e)) + raise ConanInvalidConfiguration("The recipe %s is constraining settings. %s" % ( + conanfile.display_name, str(e))) @contextmanager