Make the minify method return a more useful error message