check for region as well

This commit is contained in:
Girish Ramakrishnan
2016-04-02 13:31:12 -07:00
parent 1fed5ee353
commit b16aa4c007

View File

@@ -85,7 +85,7 @@ function getSignedDownloadUrl(apiConfig, info, filename, callback) {
assert.strictEqual(typeof filename, 'string');
assert.strictEqual(typeof callback, 'function');
if (!info.bucket || !info.prefix) return new Error('Invalid configuration'); // prevent error in s3
if (!info.bucket || !info.prefix || !info.region) return new Error('Invalid configuration'); // prevent error in s3
getBackupCredentials(apiConfig, function (error, credentials) {
if (error) return callback(error);