diff --git a/.changes/unreleased/Features-20240405-175733.yaml b/.changes/unreleased/Features-20240405-175733.yaml new file mode 100644 index 00000000000..0346361fc15 --- /dev/null +++ b/.changes/unreleased/Features-20240405-175733.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Better error message when trying to select a disabled model +time: 2024-04-05T17:57:33.047963+02:00 +custom: + Author: SamuelBFavarin + Issue: "9747" diff --git a/core/dbt/events/types.py b/core/dbt/events/types.py index b8ce80aa5de..391d0c22002 100644 --- a/core/dbt/events/types.py +++ b/core/dbt/events/types.py @@ -1099,7 +1099,7 @@ def code(self) -> str: return "M030" def message(self) -> str: - return f"The selection criterion '{self.spec_raw}' does not match any nodes" + return f"The selection criterion '{self.spec_raw}' does not match any enabled nodes" class DepsLockUpdating(InfoLevel):