Skip to content

Commit 94440e1

Browse files
committed
fix: handle manifest rebuild errors on file change
1 parent 88560c6 commit 94440e1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/manifest/dbtIntegrationAdapter.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,15 @@ export class DBTIntegrationAdapter extends EventEmitter implements DBTFacade {
649649
`SourceFileChanged event fired for "${this.getProjectName()}" at ${this.projectRoot}`,
650650
);
651651
this.emit("sourceFileChanged");
652-
await this.rebuildManifest();
652+
try {
653+
await this.rebuildManifest();
654+
} catch (error) {
655+
this.terminal.error(
656+
"DBTIntegrationAdapterError",
657+
`Failed to rebuild manifest after file change: ${error instanceof Error ? error.message : String(error)}`,
658+
error,
659+
);
660+
}
653661
}, this.getDebounceForRebuildManifest());
654662

655663
for (const sourcePath of this.currentSourcePaths) {

0 commit comments

Comments
 (0)