Reviewing the change wording. Add the root cause of the error of: checkGiteaOrg to allow to know if there is a certificate error

Signed-off-by: cmoulliard <cmoulliard@redhat.com>
This commit is contained in:
cmoulliard
2024-02-19 14:13:34 +01:00
parent 40de43d14d
commit 72ab2dcd58
2 changed files with 5 additions and 2 deletions
@@ -80,7 +80,9 @@ const checkGiteaOrg = async (
getOptions,
);
} catch (e) {
throw new Error(`Unable to get the Organization: ${owner}, ${e}`);
throw new Error(
`Unable to get the Organization: ${owner}; Error cause: ${e.cause.message}`,
);
}
if (response.status !== 200) {
throw new Error(