azproduction / lmd

LMD - JavaScript Module-Assembler for building better web applications :warning: Project is no longer supported :warning:
http://azproduction.ru/lmd/
MIT License
449 stars 27 forks source link

Uncaught error for absent 'www_root' #185

Closed jeron-diovis closed 10 years ago

jeron-diovis commented 10 years ago

When "www_root" property is not set, path.js error is thrown before LMD checks that property existence.

https://github.com/azproduction/lmd/blob/master/bin/lmd_actions/server.js#L114-L119

path.js:313
        throw new TypeError('Arguments to path.resolve must be strings');
              ^
TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:313:15)
    at module.exports (/usr/local/lib/node_modules/lmd/bin/lmd_actions/server.js:114:23)
azproduction commented 10 years ago

fixed in lmd@1.13.2