walmartlabs/lumbar — Issue #56: Error when modifying lumbar.json in watch mode
Author: syntacticx
Created: 2012-02-10 18:03:09+00:00
State: open

After running jake watch, and modifying lumbar.json I sometimes get this error, and then the the process ceases to respond, but does not exit. Like all fun errors this does not happen 100% of the time when modifying lumbar.json

lumbar err:
lumbar err: /Users/ryan/Projects/phoenix/node_modules/lumbar/lib/plugins/template.js:12
lumbar err: data = data.toString();
lumbar err: lumbar err: ^
lumbar err: TypeError: Cannot call method 'toString' of undefined
lumbar err: at /Users/ryan/Projects/phoenix/node_modules/lumbar/lib/plugins/template.js:12:17
lumbar err: at /Users/ryan/Projects/phoenix/node_modules/lumbar/lib/fileUtil.js:36:9
lumbar err: at Array.forEach (native)
lumbar err: at _callback (/Users/ryan/Projects/phoenix/node_modules/lumbar/lib/fileUtil.js:35:21)
lumbar err: at [object Object]. (fs.js:88:5)
lumbar err: at [object Object].emit (events.js:67:17)
lumbar err: at Object.oncomplete (fs.js:1058:12)