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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user