cmather / meteor-handlebars-server

Server side handlebars support for Meteor
80 stars 14 forks source link

Empty file `server/lib/etc/etc/rando.html.handlebars` crashes the server #37

Open MichaelJCole opened 7 years ago

MichaelJCole commented 7 years ago

Creating a file server/lib/etc/etc/rando.html.handlebars crashes the server with the exception below. If the file has a newline, the crash doesn't happen.

W20170714-14:06:05.237(-5)? (STDERR)          
W20170714-14:06:05.237(-5)? (STDERR) /home/michael/.meteor/packages/meteor-tool/.1.5.0.13y3u7e++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20170714-14:06:05.238(-5)? (STDERR)                        throw(ex);
W20170714-14:06:05.238(-5)? (STDERR)                        ^
W20170714-14:06:05.239(-5)? (STDERR) Error
W20170714-14:06:05.239(-5)? (STDERR)     at Object.exports.attach (/home/michael/.meteor/packages/cmather_handlebars-server/.2.0.0.2dnoml++os+web.browser+web.cordova/npm/node_modules/handlebars/lib/handlebars/utils.js:15:34)
W20170714-14:06:05.239(-5)? (STDERR)     at create (/home/michael/.meteor/packages/cmather_handlebars-server/.2.0.0.2dnoml++os+web.browser+web.cordova/npm/node_modules/handlebars/lib/handlebars.js:12:9)
W20170714-14:06:05.240(-5)? (STDERR)     at Object.<anonymous> (/home/michael/.meteor/packages/cmather_handlebars-server/.2.0.0.2dnoml++os+web.browser+web.cordova/npm/node_modules/handlebars/lib/handlebars.js:19:18)
W20170714-14:06:05.240(-5)? (STDERR)     at Module._compile (module.js:409:26)
W20170714-14:06:05.241(-5)? (STDERR)     at Object.Module._extensions..js (module.js:416:10)
W20170714-14:06:05.241(-5)? (STDERR)     at Module.load (module.js:343:32)
W20170714-14:06:05.241(-5)? (STDERR)     at Function.Module._load (module.js:300:12)
W20170714-14:06:05.242(-5)? (STDERR)     at Module.require (module.js:353:17)
W20170714-14:06:05.242(-5)? (STDERR)     at require (internal/module.js:12:17)
W20170714-14:06:05.242(-5)? (STDERR)     at Object.require (/home/michael/scm/blink/blink-meteor/admin/.meteor/local/build/programs/server/boot.js:217:18)
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.