Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/k8s/src/hooks/run-container-step.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export async function runContainerStep(
try {
pod = await createContainerStepPod(getStepPodName(), container, extension)
} catch (err) {
core.debug(`createJob failed: ${JSON.stringify(err)}`)
core.debug(`createContainerStepPod failed: ${JSON.stringify(err)}`)
const message = (err as any)?.response?.body?.message || err
throw new Error(`failed to run script step: ${message}`)
throw new Error(`failed to run container step: ${message}`)
}

if (!pod.metadata?.name) {
Expand Down Expand Up @@ -111,7 +111,7 @@ export async function runContainerStep(
} catch (err) {
core.debug(`execPodStep failed: ${JSON.stringify(err)}`)
const message = (err as any)?.response?.body?.message || err
throw new Error(`failed to run script step: ${message}`)
throw new Error(`failed to run container step: ${message}`)
} finally {
fs.rmSync(runnerPath, { force: true })
}
Expand Down
Loading