fix(testing): preserve changed-gate diagnostics

This commit is contained in:
Peter Steinberger
2026-07-14 02:33:29 +01:00
parent c4c72aa086
commit 9668b668c5
2 changed files with 4 additions and 5 deletions

View File

@@ -3117,7 +3117,7 @@ function prepareFullCheckoutForSync(options = {}) {
cleanupFullCheckout(dir, active);
active = false;
const message = error instanceof Error ? error.message : String(error);
throw new Error(`git bundle for changed-gate sync failed: ${message}`);
throw new Error(`git bundle for changed-gate sync failed: ${message}`, { cause: error });
} finally {
if (bundleTempDir) {
rmSync(bundleTempDir, { recursive: true, force: true });