mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
refactor: throw errors directly in async functions (#39233)
This commit is contained in:
@@ -1422,7 +1422,7 @@ describe('app module', () => {
|
||||
}
|
||||
} else {
|
||||
// return error if not clean exit
|
||||
return Promise.reject(new Error(errorData));
|
||||
throw new Error(errorData);
|
||||
}
|
||||
};
|
||||
const verifyBasicGPUInfo = async (gpuInfo: any) => {
|
||||
|
||||
Reference in New Issue
Block a user