diff --git a/src/branchprotection/BranchProtectionService.ts b/src/branchprotection/BranchProtectionService.ts index 79fb829f..a6efbdcc 100644 --- a/src/branchprotection/BranchProtectionService.ts +++ b/src/branchprotection/BranchProtectionService.ts @@ -25,8 +25,8 @@ export class BranchProtectionService { console.log(response.data); }) .catch((error) => { - console.log('Error getting branch protection!'); - core.warning('Error: ', error.message); + core.warning('Error getting branch protection!'); + console.log('Error: ', error); }); } }