Changed how we log the error using the message and cause.code. Otherwise it is not possible to know if the gitea server replies

Signed-off-by: cmoulliard <cmoulliard@redhat.com>
This commit is contained in:
cmoulliard
2024-04-19 12:18:12 +02:00
parent 6eaba9fb98
commit 64e36f5f47
@@ -81,7 +81,7 @@ const checkGiteaOrg = async (
);
} catch (e) {
throw new Error(
`Unable to get the Organization: ${owner}; Error cause: ${e.cause.message}`,
`Unable to get the Organization: ${owner}; Error cause: ${e.message}, code: ${e.cause.code}`,
);
}
if (response.status !== 200) {