Fix loading with no config from HTTP

pull/2540/head
David Baker 2016-11-03 14:17:23 +00:00
parent efd0dab316
commit 3601b44429
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ function getConfig() {
// we don't get 404s from file: URIs so this is the
// only way we can not fail if the file doesn't exist
// when loading from a file:// URI.
if (( err && err.response.status == 404) || body == '') {
if (( response && response.status == 404) || body == '') {
deferred.resolve({});
}
deferred.reject({err: err, response: response});