Update CodePush.js

This commit is contained in:
Geoffrey Goh
2016-06-07 18:37:03 -07:00
parent 37278b4944
commit aa456010fb

View File

@@ -354,7 +354,11 @@ async function syncInternal(options = {}, syncStatusChangeCallback, downloadProg
const dialogButtons = [{
text: null,
onPress: async () => {
resolve(await doDownloadAndInstall());
try {
resolve(await doDownloadAndInstall());
} catch (downloadError) {
reject(downloadError);
}
}
}];
@@ -451,4 +455,4 @@ if (NativeCodePush) {
log("The CodePush module doesn't appear to be properly installed. Please double-check that everything is setup correctly.");
}
module.exports = CodePush;
module.exports = CodePush;