refactor: throw errors directly in async functions (#39233)
This commit is contained in:
parent
68701c4c3c
commit
724f90a2a7
3 changed files with 19 additions and 20 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue