Skip to content

Commit

Permalink
fix: error catch
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonKhew96 authored Sep 17, 2024
1 parent 8695d5a commit 2fcce98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ exports.onCreateNode = async ({
['--smart', '--validate-utf8', '--github-pre-lang', '-e', 'footnotes', '-e', 'table', '-e', 'strikethrough', '-e', 'autolink', '-e', 'tagfilter', '-e', 'tasklist', '--unsafe', '--strikethrough-double-tilde', '-t', 'html'],
{ input: repo.readme },
).toString()
} catch (e) {
} catch (err) {
if (err.code) {
console.error(err.code);
} else {
Expand Down

0 comments on commit 2fcce98

Please sign in to comment.