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

Invalid references throw useless errors. #8

Open
jczerwinski opened this issue Dec 21, 2018 · 0 comments
Open

Invalid references throw useless errors. #8

jczerwinski opened this issue Dec 21, 2018 · 0 comments

Comments

@jczerwinski
Copy link
Member

References that citation-js cannot parse are ugly and should be improved. They look like this:

[set] This format is not supported or recognized
C:\Users\Jam\workspace\schol\schol\src\schol.js:58
          if (err) throw err;
                   ^

TypeError: Cannot set property '_original' of undefined
    at Object.keys.forEach (C:\Users\Jam\workspace\schol\schol\src\schol.js:177:21)
    at Array.forEach (<anonymous>)
    at buildBibliography (C:\Users\Jam\workspace\schol\schol\src\schol.js:168:21)
    at filenames.forEach.filename (C:\Users\Jam\workspace\schol\schol\src\schol.js:106:29)
    at Array.forEach (<anonymous>)
    at Ware.cite (C:\Users\Jam\workspace\schol\schol\src\schol.js:94:6)
    at Ware.<anonymous> (C:\Users\Jam\workspace\schol\schol\node_modules\wrap-fn\index.js:45:19)
    at next (C:\Users\Jam\workspace\schol\schol\node_modules\ware\lib\index.js:85:20)
    at Ware.run (C:\Users\Jam\workspace\schol\schol\node_modules\ware\lib\index.js:88:3)
    at Metalsmith.<anonymous> (C:\Users\Jam\workspace\schol\schol\node_modules\thunkify\index.js:43:12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant