Skip to content

Commit

Permalink
Use line_wrap_message and separate over multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 authored Apr 12, 2024
1 parent 03b1aab commit e398d8b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dbt/adapters/events/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,5 +429,9 @@ def code(self) -> str:
return "E050"

def message(self) -> str:
msg = f"The `type_code` {self.type_code} was not recognized, which may affect error messages for enforced contracts that fail as well as `Column.data_type` values returned by `get_column_schema_from_query`"
return msg
msg = (
f"The `type_code` {self.type_code} was not recognized, which may affect error "
"messages for enforced contracts that fail as well as `Column.data_type` values "
"returned by `get_column_schema_from_query`"
)
return line_wrap_message(warning_tag(msg))

0 comments on commit e398d8b

Please sign in to comment.