Catch errors from initAsync
This commit is contained in:
parent
29009aa5e5
commit
2dec405a9b
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user