From 1aad5b38219b13cd405b62bed036ff18866496d8 Mon Sep 17 00:00:00 2001 From: Brian Fletcher Date: Wed, 18 May 2022 10:32:09 +0100 Subject: [PATCH] add repository and user type to error message Signed-off-by: Brian Fletcher --- .../src/scaffolder/actions/builtin/publish/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/github.ts b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/github.ts index 2e5fc2091f..f238314534 100644 --- a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/github.ts +++ b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/github.ts @@ -271,7 +271,7 @@ export function createPublishGithubAction(options: { assertError(e); if (e.message === 'Resource not accessible by integration') { ctx.logger.warn( - 'The GitHub app or token provided to Backstage may not have the required permissions to create the repository.', + `The GitHub app or token provided may not have the required permissions to create the ${user.data.type} repository ${owner}/${repo}.`, ); } throw new Error(