Skip to content

Commit

Permalink
update the default message for the behavior change event
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Sep 18, 2024
1 parent b650b1e commit 1a298f1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dbt_common/events/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ def code(self) -> str:
return "D018"

def message(self) -> str:
msg = (
f"The behavior controlled by `{self.flag_name}` is currently turned off.\n"
f"This behavior can be turned on by setting `flags.{self.flag_name}` to `True` in `dbt_project.yml`.\n"
)

if self.description:
msg += f"{self.description}.\n"
msg = f"{self.description}.\n"
else:
msg = f"The behavior controlled by `{self.flag_name}` is currently turned off.\n"

msg += f"Visit {self.docs_url} for more information."
msg += (
f"You may opt into the new behavior sooner by setting `flags.{self.flag_name}` to `True` in `dbt_project.yml`.\n"
f"Visit {self.docs_url} for more information."
)

return warning_tag(msg)

Expand Down

0 comments on commit 1a298f1

Please sign in to comment.