Skip to content

Commit

Permalink
Log stacktrace when container runtime strategy throws (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianrgreco authored Jul 8, 2024
1 parent d623522 commit a883902
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export async function getContainerRuntimeClient(): Promise<ContainerRuntimeClien
return client;
}
} catch (err) {
log.debug(`Container runtime strategy "${strategy.getName()}" does not work: ${err}`);
log.debug(`Container runtime strategy "${strategy.getName()}" does not work: "${err}"`);
if (err !== null && typeof err === "object" && "stack" in err && typeof err.stack === "string") {
log.debug(err.stack);
}
}
}
throw new Error("Could not find a working container runtime strategy");
Expand Down

0 comments on commit a883902

Please sign in to comment.