Skip to content

Commit

Permalink
add recipe name to constrained settings error (#8559)
Browse files Browse the repository at this point in the history
  • Loading branch information
melak47 committed Feb 25, 2021
1 parent 052a68f commit 1ecb563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conans/model/conan_file.py
Expand Up @@ -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
Expand Down

0 comments on commit 1ecb563

Please sign in to comment.