mirror of
https://github.com/less/less.js.git
synced 2026-01-24 14:48:00 -05:00
pass url to errback()
This commit is contained in:
@@ -152,7 +152,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) {
|
||||
}
|
||||
}
|
||||
}, function (status, url) {
|
||||
throw new(Error)("Couldn't load " + url+ " (" + status + ")");
|
||||
throw new(Error)("Couldn't load " + url + " (" + status + ")");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ function xhr(url, callback, errback) {
|
||||
if (xhr.status === 0) {
|
||||
callback(xhr.responseText);
|
||||
} else {
|
||||
errback(xhr.status);
|
||||
errback(xhr.status, url);
|
||||
}
|
||||
} else if (async) {
|
||||
xhr.onreadystatechange = function () {
|
||||
|
||||
Reference in New Issue
Block a user