Merge pull request #29 from embark-framework/fix/no-dapp-connection-rejection-error

fix(@embarkjs): fix unhandled promise rejection
This commit is contained in:
Iuri Matias 2018-12-07 09:38:33 -05:00 committed by GitHub
commit d8dd05be2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -98,10 +98,10 @@ Storage.setProviders = async function (dappConnOptions) {
} }
} }
}, function(err, result){ }, function(err, result){
if(!result) throw new Error('Could not connect to a storage provider using any of the dappConnections in the storage config'); if(!result) console.error('Could not connect to a storage provider using any of the dappConnections in the storage config');
}); });
} catch (err) { } catch (err) {
throw new Error('Failed to connect to a storage provider: ' + err.message); console.error('Failed to connect to a storage provider: ' + err.message);
} }
}; };