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

Do not display stacktrace (production mode) #3

Open
4n70w4 opened this issue Apr 5, 2019 · 1 comment
Open

Do not display stacktrace (production mode) #3

4n70w4 opened this issue Apr 5, 2019 · 1 comment

Comments

@4n70w4
Copy link

4n70w4 commented Apr 5, 2019

Example incorrect bcid: bcid=qr&text=123456789012&backgroundcolor=FFFFFF&paddingwidth=2&paddingheight=2&includetext

Output:

Error: bwipp.unknownEncoder: qr
    at /app/node_modules/bwip-js/bwipp.js:27935:10
    at Function.module.exports.toBuffer (/app/node_modules/bwip-js/node-bwipjs.js:151:10)
    at module.exports (/app/node_modules/bwip-js/node-bwipjs.js:56:17)
    at app.get (/app/index.js:12:9)
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at next (/app/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at /app/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
@padiazg
Copy link
Owner

padiazg commented Apr 10, 2019

Good point. Will see a better way to display errors.

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