1602/express-on-railway — Issue #57: Local issue (because of yaml.js)
Author: scottkf
Created: 2011-10-11 16:31:50+00:00
State: open

If you don't terminate the yml locale files in config/locales with a newline, you get this error:

TypeError: Cannot read property '1' of undefined
at Parser.expect (/usr/local/lib/node_modules/railway/node_modules/yaml/lib/yaml.js:179:51)
at Parser.parseHash (/usr/local/lib/node_modules/railway/node_modules/yaml/lib/yaml.js:280:12)
at Parser.parse (/usr/local/lib/node_modules/railway/node_modules/yaml/lib/yaml.js:239:19)
at Parser.parseHash (/usr/local/lib/node_modules/railway/node_modules/yaml/lib/yaml.js:279:23)
at Parser.parse (/usr/local/lib/node_modules/railway/node_modules/yaml/lib/yaml.js:239:19)
at Object.eval (/usr/local/lib/node_modules/railway/node_modules/yaml/lib/yaml.js:381:46)
at /usr/local/lib/node_modules/railway/lib/locales.js:24:28
at Array.forEach (native)
at Object.load (/usr/local/lib/node_modules/railway/lib/locales.js:18:25)
at Object.init (/usr/local/lib/node_modules/railway/lib/locales.js:14:13)

See this issue for why: https://github.com/visionmedia/js-yaml/issues/13