Merge pull request #368 from Microsoft/propagate-download-dialog-err

Propagate errors thrown in update dialog button press handler
This commit is contained in:
Geoffrey Goh
2016-06-08 10:51:15 -07:00

View File

@@ -353,8 +353,9 @@ async function syncInternal(options = {}, syncStatusChangeCallback, downloadProg
let message = null;
const dialogButtons = [{
text: null,
onPress: async () => {
resolve(await doDownloadAndInstall());
onPress:() => {
doDownloadAndInstall()
.then(resolve, reject);
}
}];
@@ -451,4 +452,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;