From f9c069f510a892176c158559094396f66abef91f Mon Sep 17 00:00:00 2001 From: Niels ten Boom Date: Wed, 6 Dec 2023 13:59:05 +0100 Subject: [PATCH] chore: better logging on error (#10) --- package.json | 2 +- packages/k8s/src/k8s/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 53b08d29..d4c19dbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hooks", - "version": "0.3.11", + "version": "0.3.12", "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", "main": "", "directories": { diff --git a/packages/k8s/src/k8s/index.ts b/packages/k8s/src/k8s/index.ts index f8f0d7b1..d9fc98c3 100644 --- a/packages/k8s/src/k8s/index.ts +++ b/packages/k8s/src/k8s/index.ts @@ -248,7 +248,8 @@ export async function execPodStep( } ) } catch (error) { - core.error(`Failed to exec pod step: ${error}`) + core.error(`Failed to exec pod step`) + core.error(error as Error) } }) }