refactor: throw errors directly in async functions (#39233)

This commit is contained in:
Milan Burda
2023-07-31 10:39:37 +02:00
committed by GitHub
parent 68701c4c3c
commit 724f90a2a7
3 changed files with 19 additions and 20 deletions

View File

@@ -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) => {