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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) => {