add repository and user type to error message

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2022-05-18 10:32:09 +01:00
parent 6901f6be4a
commit 1aad5b3821
@@ -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(