Catch errors from initAsync

This commit is contained in:
Michal Moskal 2017-08-07 11:12:52 +02:00
parent 29009aa5e5
commit 2dec405a9b

View File

@ -121,13 +121,9 @@ namespace pxt.editor {
const res: pxt.editor.ExtensionResult = { const res: pxt.editor.ExtensionResult = {
deployCoreAsync, deployCoreAsync,
}; };
initAsync() initAsync().catch(e => {
/* // probably no HID - we'll try this again upon deployment
.then(w => w.streamFileAsync("/tmp/serial.txt", buf => { })
let str = Util.fromUTF8(Util.uint8ArrayToString(buf))
}))
*/
return Promise.resolve<pxt.editor.ExtensionResult>(res); return Promise.resolve<pxt.editor.ExtensionResult>(res);
} }
} }