File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const github = __importStar(__nccwpck_require__(5438));
44
44
const util_1 = __nccwpck_require__(3837);
45
45
/* eslint-disable @typescript-eslint/no-explicit-any */
46
46
function hasErrorStatus(error) {
47
- return typeof error.code === 'number';
47
+ return typeof error.status === 'number';
48
48
}
49
49
function getErrorMessage(error) {
50
50
if (error instanceof Error)
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import {inspect} from 'util'
4
4
5
5
/* eslint-disable @typescript-eslint/no-explicit-any */
6
6
function hasErrorStatus ( error : any ) : error is { status : number } {
7
- return typeof error . code === 'number'
7
+ return typeof error . status === 'number'
8
8
}
9
9
10
10
function getErrorMessage ( error : unknown ) {
You can’t perform that action at this time.
0 commit comments