diff --git a/plugins/scaffolder-backend/src/scaffolder/stages/publish/github.ts b/plugins/scaffolder-backend/src/scaffolder/stages/publish/github.ts index 599cd32337..c7b7076095 100644 --- a/plugins/scaffolder-backend/src/scaffolder/stages/publish/github.ts +++ b/plugins/scaffolder-backend/src/scaffolder/stages/publish/github.ts @@ -110,9 +110,7 @@ export class GithubPublisher implements PublisherBase { repoName: name, }); } catch (e) { - throw new Error( - `Failed to add branch protection to '${name}': ${e.message}`, - ); + throw new Error(`Failed to add branch protection to '${name}', ${e}`); } return { remoteUrl, catalogInfoUrl };