Author: hlship
Date: Fri Dec 9 17:53:44 2011
New Revision: 1212544
URL: http://svn.apache.org/viewvc?rev=1212544&view=rev
Log:
TAP5-1729: Sometimes YUICompressor can fail with java.util.EmptyStackException
Modified:
tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JavaScriptResourceMinimizer.java
Modified:
tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JavaScriptResourceMinimizer.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JavaScriptResourceMinimizer.java?rev=1212544&r1=1212543&r2=1212544&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JavaScriptResourceMinimizer.java
(original)
+++
tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JavaScriptResourceMinimizer.java
Fri Dec 9 17:53:44 2011
@@ -113,7 +113,7 @@ public class JavaScriptResourceMinimizer
private void recoverFromException(Exception ex, StreamableResource
resource, Writer output) throws IOException
{
- logger.error(String.format("Exception minimizing %s: %s",
resource.getDescription(), InternalUtils.toMessage(ex), ex));
+ logger.error(String.format("Exception minimizing %s: %s",
resource.getDescription(), InternalUtils.toMessage(ex)), ex);
streamUnminimized(resource, output);
}