diff --git a/src/branchprotection/BranchProtectionService.ts b/src/branchprotection/BranchProtectionService.ts index 8f6b416f..f0c3515d 100644 --- a/src/branchprotection/BranchProtectionService.ts +++ b/src/branchprotection/BranchProtectionService.ts @@ -23,7 +23,7 @@ export class BranchProtectionService { }) .catch((error: any) => { console.log('Branch protections is not enabled for repository: ' + repo); - console.log('Error: ', error?.message); + console.log('Error: ', error); }); core.exportVariable('numberOfReviewers', numberOfReviewers); }