Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No verbose traceback for layout() method #9384

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion conans/client/conanfile/configure.py
Expand Up @@ -41,4 +41,5 @@ def run_configure_method(conanfile, down_options, down_ref, ref):

# Once the node is configured call the layout()
if hasattr(conanfile, "layout"):
conanfile.layout()
with conanfile_exception_formatter(str(conanfile), "layout"):
conanfile.layout()
3 changes: 2 additions & 1 deletion conans/test/integration/conanfile/test_exception_printing.py
Expand Up @@ -31,7 +31,8 @@ def test_all_methods(direct):
else:
throw = "self._aux_method()"
for method in ["source", "build", "package", "package_info", "configure", "build_id",
"package_id", "requirements", "config_options"]:
"package_id", "requirements", "config_options", "layout", "generate", "export",
"export_sources"]:
client.save({CONANFILE: conanfile.format(method=method, method_contents=throw)})
client.run("create . ", assert_error=True)
assert "exceptions/0.1: Error in %s() method, line 12" % method in client.out
Expand Down