From 46bb4a1482d78e9bcfdf68a096de2eb418b3273c Mon Sep 17 00:00:00 2001 From: Tejas Kumar Date: Tue, 18 May 2021 13:31:00 +0200 Subject: [PATCH] Adjust error output Signed-off-by: Tejas Kumar --- .../src/scaffolder/stages/publish/github.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 };