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