Skip to content

Commit

Permalink
Ux/deprecate generators (#14662)
Browse files Browse the repository at this point in the history
* increase warning msg

* rm color
  • Loading branch information
memsharded authored Sep 5, 2023
1 parent 49726f6 commit 73a2658
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions conans/client/generators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,11 @@ def write_generators(self, conanfile, old_gen_folder, new_gen_folder, output):
try:
generator.output_path = old_gen_folder
content = generator.content
conanfile.output.warning(f"**** The '{generator_name}' generator is deprecated. "
"Please update your code and remove it. ****")
conanfile.output.warn(f"\n"
f" ************************************************\n"
f" The '{generator_name}' generator is deprecated.\n"
f" Please update your code and remove it.\n"
f" *************************************************\n")
if isinstance(content, dict):
if generator.filename:
output.warn("Generator %s is multifile. Property 'filename' not used"
Expand Down

0 comments on commit 73a2658

Please sign in to comment.