mirror of
https://github.com/less/less.js.git
synced 2026-02-08 22:15:04 -05:00
Fixing windows related errors in gradle build file.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*jshint rhino:true, unused: false */
|
||||
/*global name:true, less, loadStyleSheet */
|
||||
/*global name:true, less, loadStyleSheet, initRhinoTest, os */
|
||||
|
||||
if (typeof initRhinoTest === 'function') { // definition of additional test functions (see rhino/test-header.js)
|
||||
initRhinoTest();
|
||||
@@ -120,8 +120,9 @@ less.Parser.fileLoader = function (file, currentFileInfo, callback, env) {
|
||||
newFileInfo.currentDirectory = path;
|
||||
newFileInfo.filename = href;
|
||||
|
||||
var data = null;
|
||||
try {
|
||||
var data = readFile(href);
|
||||
data = readFile(href);
|
||||
} catch (e) {
|
||||
callback({ type: 'File', message: "'" + less.modules.path.basename(href) + "' wasn't found" });
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user