mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 19:59:37 +00:00
better error handling in case of loader error in tests
This commit is contained in:
@@ -273,5 +273,12 @@ function runTests(opts) {
|
||||
|
||||
ipcRenderer.on('run', (e, opts) => {
|
||||
initLoader(opts);
|
||||
runTests(opts).catch(err => console.error(typeof err === 'string' ? err : JSON.stringify(err)));
|
||||
runTests(opts).catch(err => {
|
||||
if (!(typeof err !== 'string')) {
|
||||
err = JSON.stringify(err);
|
||||
}
|
||||
|
||||
console.error(err);
|
||||
ipcRenderer.send('error', err);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user