shaoshing / train

Asset Management for web app using Golang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cryptic panic when there are no CSS or no JS files

kenegozi opened this issue · comments

When train is executed when there are no CSS or no JS files, YUI compressor fails, and the error reporting is unclear:

YUI Compressor error:
...
panic: exit status 1
...
stacktraces, stacktraces everywhere!

suggested solution is to check for len() of []files, skip YUI if 0, and report.

The issues has been fixed. Thank you for the report.