Skip to content

Commit e1c940a

Browse files
authored
fix: log error when checking canHandleWebhook
1 parent 89774cb commit e1c940a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ class ScmRouter extends Scm {
101101
scm.canHandleWebhook(headers, payload)
102102
.then((result) => {
103103
cb(result === false ? null : scm);
104-
}).catch(() => {
104+
}).catch((err) => {
105+
logger.error(err);
105106
cb(null);
106107
});
107108
}, ret => resolve(ret));

0 commit comments

Comments
 (0)