Skip to content

Commit f9c069f

Browse files
authored
chore: better logging on error (#10)
1 parent a775201 commit f9c069f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hooks",
3-
"version": "0.3.11",
3+
"version": "0.3.12",
44
"description": "Three projects are included - k8s: a kubernetes hook implementation that spins up pods dynamically to run a job - docker: A hook implementation of the runner's docker implementation - A hook lib, which contains shared typescript definitions and utilities that the other packages consume",
55
"main": "",
66
"directories": {

packages/k8s/src/k8s/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ export async function execPodStep(
248248
}
249249
)
250250
} catch (error) {
251-
core.error(`Failed to exec pod step: ${error}`)
251+
core.error(`Failed to exec pod step`)
252+
core.error(error as Error)
252253
}
253254
})
254255
}

0 commit comments

Comments
 (0)