Skip to content

Missing 'return' in mu.js #27

crossover opened this Issue Apr 14, 2012 · 1 comment

2 participants


Missing return at line 34 in mu.js (0.5.13):

if (err) {
  callback(new Error('file_not_found'));//errors.fileNotFound(mu.root, filename, err)));

when file isn't present:

this.template = template.replace(/\r\n/g, carriage)
TypeError: Cannot call method 'replace' of undefined
at Object.Parser (.../node_modules/mu2/lib/mu/parser.js:15:28)
at Object.parse (.../node_modules/mu2/lib/mu/parser.js:10:16)
at .../node_modules/mu2/lib/mu.js:37:21
at [object Object]. (fs.js:88:5)
at [object Object].emit (events.js:67:17)
at Object.oncomplete (fs.js:1058:12)


Fix in 69b6a6c. Thanks for the report.

@raycmorgan raycmorgan closed this Apr 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.