Skip to content

Commit

Permalink
Update log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Dec 17, 2024
1 parent 64b1dda commit fee8250
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/gatsby-source-snooty-prod/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ exports.sourceNodes = async ({ actions, createContentDigest, createNodeId, getNo
const tomlContents = (await fs.readFile(`${process.cwd()}/toc.toml`)).toString();
const toc = load(tomlContents);

console.log(toc);
createNode({
tocTree: toc,
id: createNodeId('toc'),
Expand All @@ -214,7 +213,7 @@ exports.sourceNodes = async ({ actions, createContentDigest, createNodeId, getNo
parent: null,
});
} catch (e) {
console.error('error occurred', e);
console.error('error occurred when reading the toc.toml', e);
}

if (process.env['OFFLINE_DOCS'] !== 'true') {
Expand Down

0 comments on commit fee8250

Please sign in to comment.