Skip to content

toPDF node crash when invalid mustache template #34

@bogdanmarin

Description

@bogdanmarin

Node crash instead of going to catch block on promise:
Shouldn't this be handled?

/app/node_modules/nodeice/node_modules/mustache/mustache.js:198
throw new Error('Unclosed tag at ' + scanner.pos);
^
Error: Unclosed tag at 470
at parseTemplate (/app/node_modules/nodeice/node_modules/mustache/mustache.js:198:15)
at Writer.parse (/app/node_modules/nodeice/node_modules/mustache/mustache.js:450:34)
at Writer.render (/app/node_modules/nodeice/node_modules/mustache/mustache.js:465:23)
at Object.render (/app/node_modules/nodeice/node_modules/mustache/mustache.js:603:26)
at /app/node_modules/nodeice/lib/index.js:151:62
at iterateObject (/app/node_modules/iterate-object/lib/index.js:21:17)
at /app/node_modules/nodeice/lib/index.js:120:17
at /app/node_modules/nodeice/lib/index.js:73:21
at /app/node_modules/same-time/lib/index.js:71:22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions