Skip to content

Commit 2fcce98

Browse files
authored
fix: error catch
1 parent 8695d5a commit 2fcce98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ exports.onCreateNode = async ({
247247
['--smart', '--validate-utf8', '--github-pre-lang', '-e', 'footnotes', '-e', 'table', '-e', 'strikethrough', '-e', 'autolink', '-e', 'tagfilter', '-e', 'tasklist', '--unsafe', '--strikethrough-double-tilde', '-t', 'html'],
248248
{ input: repo.readme },
249249
).toString()
250-
} catch (e) {
250+
} catch (err) {
251251
if (err.code) {
252252
console.error(err.code);
253253
} else {

0 commit comments

Comments
 (0)