mirror of
https://github.com/less/less.js.git
synced 2026-02-05 20:44:58 -05:00
(ws)
This commit is contained in:
@@ -106,14 +106,14 @@ less.Parser.importer = function (file, paths, callback, env) {
|
||||
|
||||
if (pathname) {
|
||||
fs.readFile(pathname, 'utf-8', function(e, data) {
|
||||
if (e) sys.error(e);
|
||||
if (e) return callback(e);
|
||||
|
||||
new(less.Parser)({
|
||||
paths: [path.dirname(pathname)].concat(paths),
|
||||
filename: pathname
|
||||
}).parse(data, function (e, root) {
|
||||
callback(e, root, data);
|
||||
});
|
||||
new(less.Parser)({
|
||||
paths: [path.dirname(pathname)].concat(paths),
|
||||
filename: pathname
|
||||
}).parse(data, function (e, root) {
|
||||
callback(e, root, data);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
if (typeof(env.errback) === "function") {
|
||||
|
||||
Reference in New Issue
Block a user