Skip to content

Commit 89c4bba

Browse files
committed
add deb ugging
1 parent a1f04ee commit 89c4bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrongsecrets-balancer/src/kubernetes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ const createK8sDeploymentForTeam = async ({ team, passcodeHash }) => {
538538
.createNamespacedDeployment({namespace:'t-' + team, body: deploymentWrongSecretsConfig})
539539
.catch((error) => {
540540
logger.error(`Failed to create deployment for team ${team}:`, error.body || error.message || error);
541-
throw new Error(error.response.body.message);
541+
throw new Error(error.message || error.body?.message || 'Failed to create deployment for body: ' + JSON.stringify(deploymentWrongSecretsConfig, null, 2));
542542
});
543543
};
544544

0 commit comments

Comments
 (0)