From 8c9b90bb3e7c38ca1be5b5288921800473355dfe Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Wed, 10 Jan 2024 12:24:49 +0100 Subject: [PATCH] Declaring the variables username, password earlier and change the message to pass the host for the missing credentials Signed-off-by: cmoulliard --- plugins/scaffolder-backend-module-gitea/src/actions/gitea.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/scaffolder-backend-module-gitea/src/actions/gitea.ts b/plugins/scaffolder-backend-module-gitea/src/actions/gitea.ts index 35af81ce91..17fbf7ab0b 100644 --- a/plugins/scaffolder-backend-module-gitea/src/actions/gitea.ts +++ b/plugins/scaffolder-backend-module-gitea/src/actions/gitea.ts @@ -304,9 +304,7 @@ export function createPublishGiteaAction(options: { const { username, password } = integrationConfig.config; if (!username || !password) { - throw new Error( - 'Credentials for Gitea integration required for this action.', - ); + throw new Error('Credentials for the gitea ${host} required.'); } // check if the org exists within the gitea server