Skip to content

Commit 738118f

Browse files
author
Clemens Buchacher
committed
output error stream from subprocess
1 parent aa3df4e commit 738118f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-client/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class KubeConfig {
137137
// TODO: Cache to file?
138138
const result = shelljs.exec(cmd, { silent: true });
139139
if (result['code'] != 0) {
140-
throw new Error('Failed to refresh token: ' + result);
140+
throw new Error('Failed to refresh token: ' + result.stderr);
141141
}
142142
let resultObj = JSON.parse(result.stdout.toString());
143143

0 commit comments

Comments
 (0)