mirror of
https://github.com/embarklabs/EmbarkJS.git
synced 2025-02-19 23:58:16 +00:00
Merge pull request #29 from embark-framework/fix/no-dapp-connection-rejection-error
fix(@embarkjs): fix unhandled promise rejection
This commit is contained in:
commit
d8dd05be2a
@ -98,10 +98,10 @@ Storage.setProviders = async function (dappConnOptions) {
|
||||
}
|
||||
}
|
||||
}, 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) {
|
||||
throw new Error('Failed to connect to a storage provider: ' + err.message);
|
||||
console.error('Failed to connect to a storage provider: ' + err.message);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user