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
+2 -1
View File
@@ -2,4 +2,5 @@
'@backstage/plugin-scaffolder-backend-module-gitea': patch
---
Add missing break within the while statement to exit from the while maxDuration statement when the gitea repository has been created and exists
Fix issue for infinite loop when repository already exists
Log the root cause of error reported by checkGiteaOrg
@@ -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(