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

Web UI crashes Sinopia when there's no README in a package #128

Closed
vne opened this issue Sep 24, 2014 · 1 comment
Closed

Web UI crashes Sinopia when there's no README in a package #128

vne opened this issue Sep 24, 2014 · 1 comment

Comments

@vne
Copy link

vne commented Sep 24, 2014

Hi,

I get the following error in Sinopia console when I click on package name in web UI:

fatal --- uncaught exception, please report this
TypeError: Object Error: ENOENT, open '/home/vne/storage/imex-publish-send-local/imex-publish-send-local-0.0.1/package/README.md' has no method 'replace'
Please report this to https://github.com/chjj/marked.
  at Lexer.lex (/usr/local/lib/node_modules/sinopia/node_modules/marked/lib/marked.js:137:6)
  at Function.Lexer.lex (/usr/local/lib/node_modules/sinopia/node_modules/marked/lib/marked.js:128:16)
  at marked (/usr/local/lib/node_modules/sinopia/node_modules/marked/lib/marked.js:1201:31)
  at /usr/local/lib/node_modules/sinopia/lib/index-web.js:76:13
  at /usr/local/lib/node_modules/sinopia/lib/local-storage.js:414:20
  at fs.js:207:20
  at Object.oncomplete (fs.js:107:15)

Probably, it should either do not provide a link to click on or complain about a missing README. Currently the whole Sinopia crashes.

Sinopia version is 0.11.3.

vne added a commit to vne/sinopia that referenced this issue Sep 24, 2014
@rlidwka
Copy link
Owner

rlidwka commented Sep 25, 2014

Fixed and published as sinopia@0.12.0. Please, check that.

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

2 participants