Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better log output for non-existing toc folders #3

Open
katywings opened this issue Sep 12, 2017 · 0 comments
Open

Better log output for non-existing toc folders #3

katywings opened this issue Sep 12, 2017 · 0 comments

Comments

@katywings
Copy link
Member

The error when there is an non existing folder item in the toc is not very helpful:

(node:6332) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot set property 'href' of undefined
(node:6332) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Reproduction (This config should do it):

toc: [
  { path: 'i_am_not_existing', children: [
    { path: 'child_in_i_am_not_existing' }
  ] }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant