We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
error.code
1 parent c5deef1 commit bf47d10Copy full SHA for bf47d10
2 files changed
dist/index.js
@@ -44,7 +44,7 @@ const github = __importStar(__nccwpck_require__(5438));
44
const util_1 = __nccwpck_require__(3837);
45
/* eslint-disable @typescript-eslint/no-explicit-any */
46
function hasErrorStatus(error) {
47
- return typeof error.code === 'number';
+ return typeof error.status === 'number';
48
}
49
function getErrorMessage(error) {
50
if (error instanceof Error)
src/main.ts
@@ -4,7 +4,7 @@ import {inspect} from 'util'
4
5
6
function hasErrorStatus(error: any): error is {status: number} {
7
- return typeof error.code === 'number'
+ return typeof error.status === 'number'
8
9
10
function getErrorMessage(error: unknown) {
0 commit comments