changcheng / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Improve lessCss error reporting #541

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When there is an error during lessCss processing, the error message is 
displayed:

"ERROR [2012-09-08 16:28:17,294] [1706809155@qtp-778022077-6] 
ro.isdc.wro.extensions.script.RhinoScriptBuilder: null - JavaScriptException 
occured: [object Object] (less-1.3.0.min.js#8)
INFO  [2012-09-08 16:28:17,412] [1706809155@qtp-778022077-6] 
net.liftweb.util.TimeHelpers: null - Service request (GET) /wro-dev/test.css 
returned 404, took 115 Milliseconds"

I was hoping that the error message logged would let me know that.  Is there a 
way I can get more verbose logging, or, is this an opportunity to improve the 
wro/less error reporting?

Reported by user on mailing list: 

https://groups.google.com/forum/?hl=en&fromgroups=#!topic/wro4j/vMgOBnkOcMs

Original issue reported on code.google.com by alex.obj...@gmail.com on 8 Sep 2012 at 8:34

GoogleCodeExporter commented 9 years ago
The error message changed to (example):

2202 ERROR RhinoScriptBuilder   - JavaScriptException occured: Could not 
execute the script because: 
{
  "type": "Name",
  "message": "variable @blue is undefined",
  "filename": null,
  "index": 32.0,
  "line": 3.0,
  "callLine": null,
  "callExtract": null,
  "stack": null,
  "column": 9.0,
  "extract": [
    "  font-size: 2em;",
    "  color: @blue;",
    "}"
  ]
}

Original comment by alex.obj...@gmail.com on 8 Sep 2012 at 9:15

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 27 Sep 2012 at 12:25