Skip to content

Commit e5e1e9d

Browse files
committed
(wip)
1 parent 3400a03 commit e5e1e9d

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

bin/index.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -89751,6 +89751,9 @@ function checkThreshold(c, o) {
8975189751
}
8975289752
});
8975389753
}
89754+
var err = function (e) {
89755+
return coreExports.error(e instanceof Error ? e + " Stack: " + e.stack : e);
89756+
};
8975489757
var notFoundMessage = "was not found, please check if the path is valid, or if it exists.";
8975589758
var run = function () { return __awaiter$1(void 0, void 0, void 0, function () {
8975689759
var commit, cStats, _a, oldStats, _b, _c, msgs, body, _d, _e, _f, _g, filter, u_1, e_1, commentId, comments, i, c, e_2;
@@ -89835,7 +89838,7 @@ var run = function () { return __awaiter$1(void 0, void 0, void 0, function () {
8983589838
return [3 /*break*/, 13];
8983689839
case 12:
8983789840
e_1 = _l.sent();
89838-
coreExports.error(e_1);
89841+
err(e_1);
8983989842
return [3 /*break*/, 13];
8984089843
case 13:
8984189844
commentId = null;
@@ -89854,7 +89857,7 @@ var run = function () { return __awaiter$1(void 0, void 0, void 0, function () {
8985489857
return [3 /*break*/, 17];
8985589858
case 16:
8985689859
e_2 = _l.sent();
89857-
coreExports.error(e_2);
89860+
err(e_2);
8985889861
return [3 /*break*/, 17];
8985989862
case 17:
8986089863
if (!commentId) return [3 /*break*/, 21];

bin/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ function* checkThreshold(c: Stats, o?: Stats) {
187187
}
188188
}
189189

190+
const err = (e: any) =>
191+
error(e instanceof Error ? e + " Stack: " + e.stack : e);
192+
190193
const notFoundMessage =
191194
"was not found, please check if the path is valid, or if it exists.";
192195

@@ -281,7 +284,7 @@ ${signature}`;
281284
u.headers["x-oauth-scopes"]
282285
);
283286
} catch (e) {
284-
error(e);
287+
err(e);
285288
}
286289

287290
let commentId = null;
@@ -299,7 +302,7 @@ ${signature}`;
299302
commentId = c.id;
300303
}
301304
} catch (e) {
302-
error(e);
305+
err(e);
303306
}
304307

305308
if (commentId) {

0 commit comments

Comments
 (0)