Skip to content

Linked stylesheet that 404s crashes app #10

@okize

Description

@okize

$ node bin/selector-detector http://localhost:9876/tooManySelectors/ -p

Retrieving CSS data from http://localhost:9876/tooManySelectors/
/Users/morganwigmanich/src/localhost/selector-detector/lib/app.js:51
throw Error('Could not find ' + request.request.href);
^
Error: Could not find http://localhost:9876/tooManySelectors/doesNotExist.css
at Error ()
at parseCss (/Users/morganwigmanich/src/localhost/selector-detector/lib/app.js:51:11)
at /Users/morganwigmanich/src/localhost/selector-detector/node_modules/async/lib/async.js:249:17
at /Users/morganwigmanich/src/localhost/selector-detector/node_modules/async/lib/async.js:125:13
at Array.forEach (native)
at _each (/Users/morganwigmanich/src/localhost/selector-detector/node_modules/async/lib/async.js:46:24)
at async.each (/Users/morganwigmanich/src/localhost/selector-detector/node_modules/async/lib/async.js:124:9)
at _asyncMap (/Users/morganwigmanich/src/localhost/selector-detector/node_modules/async/lib/async.js:248:13)
at Object.map (/Users/morganwigmanich/src/localhost/selector-detector/node_modules/async/lib/async.js:219:23)
at async.waterfall.result.page (/Users/morganwigmanich/src/localhost/selector-detector/lib/app.js:286:15)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions