From 1e4e15c023926cfb1571fe0e192b9877c496bc57 Mon Sep 17 00:00:00 2001 From: Samuel Favarin Date: Tue, 9 Apr 2024 14:23:12 +0200 Subject: [PATCH] Better error message when trying to select a disabled model (#9863) * feat: update log message * chore: add change log * Body for changelog entry --------- Co-authored-by: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> --- .changes/unreleased/Features-20240405-175733.yaml | 6 ++++++ core/dbt/events/types.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Features-20240405-175733.yaml 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):