diff --git a/lib/config.js b/lib/config.js index fbbd191..809c8df 100644 --- a/lib/config.js +++ b/lib/config.js @@ -48,7 +48,7 @@ function _downloadRemoteConfig(root) { }, (err, data) => { if (err) { - return reject('Failed to download remote config: ' + error); + return reject('Unable to download remote config: ' + err); } Object.assign(remoteConfig, JSON.parse(data.Body.toString())); @@ -71,7 +71,7 @@ function configure(c, kartRcPath) { } ); } - + if (localConfig.rootBucket) { return _downloadRemoteConfig(localConfig.rootBucket); }