Skip to content

Commit 08739b8

Browse files
authored
Fix: Intercept errors when loading the dbt manifest (#5214)
1 parent 3d144c5 commit 08739b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sqlmesh/dbt/manifest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from dbt.tracking import do_not_track
3535

3636
from sqlmesh.core import constants as c
37+
from sqlmesh.utils.errors import SQLMeshError
3738
from sqlmesh.core.config import ModelDefaultsConfig
3839
from sqlmesh.dbt.basemodel import Dependencies
3940
from sqlmesh.dbt.builtin import BUILTIN_FILTERS, BUILTIN_GLOBALS, OVERRIDDEN_MACROS
@@ -387,7 +388,10 @@ def _load_on_run_start_end(self) -> None:
387388
@property
388389
def _manifest(self) -> Manifest:
389390
if not self.__manifest:
390-
self.__manifest = self._load_manifest()
391+
try:
392+
self.__manifest = self._load_manifest()
393+
except Exception as ex:
394+
raise SQLMeshError(f"Failed to load dbt manifest: {ex}") from ex
391395
return self.__manifest
392396

393397
def _load_manifest(self) -> Manifest:

0 commit comments

Comments
 (0)