From 6517d33cf11697b7110da587be4820a5c76fd227 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Thu, 14 Oct 2010 17:05:38 -0400 Subject: [PATCH] pass url to errback() --- lib/less/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/less/browser.js b/lib/less/browser.js index 40219087..7a8d9815 100644 --- a/lib/less/browser.js +++ b/lib/less/browser.js @@ -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 () {