staticfile / cli

Staticfile command line utility
MIT License
231 stars 39 forks source link

容错机制有问题 #2

Closed sofish closed 11 years ago

sofish commented 11 years ago
$ Desktop  sfile get typo

#*
/usr/local/lib/node_modules/sfile/bin/sfile:86
      lib.assets.forEach(function (asset) {
                 ^
TypeError: Cannot call method 'forEach' of undefined
    at /usr/local/lib/node_modules/sfile/bin/sfile:86:18
    at Request.exports.get [as _callback] (/usr/local/lib/node_modules/sfile/lib/index.js:23:12)
    at Request.init.self.callback (/usr/local/lib/node_modules/sfile/node_modules/request/request.js:129:22)
    at Request.EventEmitter.emit (events.js:99:17)
    at Request.onResponse (/usr/local/lib/node_modules/sfile/node_modules/request/request.js:873:14)
    at Request.EventEmitter.emit (events.js:126:20)
    at IncomingMessage.Request.onResponse.buffer (/usr/local/lib/node_modules/sfile/node_modules/request/request.js:824:12)
    at IncomingMessage.EventEmitter.emit (events.js:126:20)
    at IncomingMessage._emitEnd (http.js:366:10)
    at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
*#
hfcorriez commented 11 years ago

0.0.4 fixed