daxingplay / kmc

module compiler for kissy
MIT License
32 stars 36 forks source link

文件出错时请抛出异常 #25

Closed nanqiu closed 11 years ago

nanqiu commented 11 years ago

正常打包不管是否有错都一路成功,不仔细看 log 的话看不到有问题。。。所以,如果有文件错误的话直接抛出来个异常停止掉好了

maxbbn commented 11 years ago

我这边也遇到一个问题了, 有个文件有语法错误,直接就忽略了, 这样出了问题很难定位

daxingplay commented 11 years ago

文龙有没有好的办法可以捕获到这个异常?我看parser方法里面没有异常可以捕获。

maxbbn commented 11 years ago

parse 的时候 try catch 应该可以捕获错误,Exception 里面包含所有的信息了

daxingplay commented 11 years ago

please update kmc to v1.0.18

maxbbn commented 11 years ago

Cool! but plz update grunt-kmc too

On Tue, Nov 5, 2013 at 10:59 PM, éÙ×Ó notifications@github.com wrote:

please update kmc to v1.0.18

¡ª Reply to this email directly or view it on GitHubhttps://github.com/daxingplay/ModuleCompiler/issues/25#issuecomment-27778847 .

Zheng Biao (Ö£±ê)

+8658111820