Increase error logging details (#6442)

Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
Joe Au-Yeung 2023-01-12 16:43:40 -05:00 committed by GitHub
parent 0a76368e98
commit 070d314897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,10 @@ const TeamsVideoApiAdapter = (credential: CredentialPayload): VideoApiAdapter =>
const resultObject = JSON.parse(resultString);
if (!resultObject.id || !resultObject.joinUrl || !resultObject.joinWebUrl) {
throw new HttpError({ statusCode: 500, message: "Error creating MS Teams meeting" });
throw new HttpError({
statusCode: 500,
message: `Error creating MS Teams meeting: ${resultObject.error.message}`,
});
}
return Promise.resolve({