We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb8a8fe + 738118f commit c91fa6eCopy full SHA for c91fa6e
node-client/src/config.ts
@@ -130,14 +130,14 @@ export class KubeConfig {
130
let expiration = Date.parse(expiry);
131
if (expiration < Date.now()) {
132
if (config['cmd-path']) {
133
- let cmd = config['cmd-path'];
+ let cmd = '"' + config['cmd-path'] + '"';
134
if (config['cmd-args']) {
135
cmd = cmd + ' ' + config['cmd-args'];
136
}
137
// TODO: Cache to file?
138
const result = shelljs.exec(cmd, { silent: true });
139
if (result['code'] != 0) {
140
- throw new Error('Failed to refresh token: ' + result);
+ throw new Error('Failed to refresh token: ' + result.stderr);
141
142
let resultObj = JSON.parse(result.stdout.toString());
143
0 commit comments