Skip to content

Commit

Permalink
output error stream from subprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
Clemens Buchacher committed Jun 18, 2018
1 parent aa3df4e commit 738118f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-client/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class KubeConfig {
// TODO: Cache to file?
const result = shelljs.exec(cmd, { silent: true });
if (result['code'] != 0) {
throw new Error('Failed to refresh token: ' + result);
throw new Error('Failed to refresh token: ' + result.stderr);
}
let resultObj = JSON.parse(result.stdout.toString());

Expand Down

0 comments on commit 738118f

Please sign in to comment.