MCPcopy Index your code
hub / github.com/coder/mux / finalizeError

Function finalizeError

src/node/runtime/devcontainerCli.ts:333–345  ·  view source on GitHub ↗
(message: string, result?: DevcontainerUpResultLine | null)

Source from the content-addressed store, hash-verified

331 }
332
333 const finalizeError = async (message: string, result?: DevcontainerUpResultLine | null) => {
334 if (result && shouldCleanupDevcontainer(result)) {
335 try {
336 await removeDevcontainerContainer(result.containerId ?? "");
337 } catch (cleanupError) {
338 log.debug("Failed to remove devcontainer container", {
339 cleanupError,
340 containerId: result.containerId,
341 });
342 }
343 }
344 settleError(new Error(message));
345 };
346
347 proc.on("error", (err) => {
348 abortSignal?.removeEventListener("abort", abortHandler);

Callers 1

handleCloseFunction · 0.85

Calls 4

settleErrorFunction · 0.85
debugMethod · 0.80

Tested by

no test coverage detected