Skip to content

Commit

Permalink
better error
Browse files Browse the repository at this point in the history
  • Loading branch information
teej committed Oct 31, 2024
1 parent f011b65 commit 2a66781
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion titan/blueprint_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def __post_init__(self):
if self.scope == BlueprintScope.DATABASE and self.schema is not None:
raise ValueError("Cannot specify a schema when using DATABASE scope")
elif self.scope == BlueprintScope.ACCOUNT and (self.database is not None or self.schema is not None):
raise ValueError("Cannot specify a database or schema when using ACCOUNT scope")
raise ValueError(
f"Cannot specify a database or schema when using ACCOUNT scope (database={repr(self.database)}, schema={repr(self.schema)})"
)


def set_vars_defaults(vars_spec: list[dict], vars: dict) -> dict:
Expand Down

0 comments on commit 2a66781

Please sign in to comment.