fix(javascript): preserve source-map preparation capability errors (#6149)

This commit is contained in:
Diya
2026-10-22 01:54:31 +05:30
committed by GitHub
parent f5acf82a78
commit 3dbe314ada
3 changed files with 141 additions and 9 deletions
+10 -8
View File
@@ -106,14 +106,16 @@ export const runSourceMapCommand = async (
? new AnalysisCancelledError(OPERATION, {
cause: options.signal.reason,
})
: new ProviderAdapterError(PROVIDER, OPERATION, {
cause,
diagnostics: {
map_path: path,
error_message: message(cause),
phase: "process_ownership_preparation",
},
}),
: cause instanceof AnalysisError
? cause
: new ProviderAdapterError(PROVIDER, OPERATION, {
cause,
diagnostics: {
map_path: path,
error_message: message(cause),
phase: "process_ownership_preparation",
},
}),
);
}
const deadline = new ProviderStartupDeadline(