Skip to content

Commit d3292a1

Browse files
author
Tim Berners-Lee
committed
Last param is now response, not status.
1 parent 6d3b3be commit d3292a1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/fetcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ class Fetcher {
808808
this.fetch(uri, options)
809809
.then(response => {
810810
if (userCallback) {
811-
userCallback(response.ok, response.statusText || response.error, response.status)
811+
userCallback(response.ok, response.statusText || response.error, response)
812812
}
813813
})
814814
.catch(err => {

src/query.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ function indexedFormulaQuery (myQuery, callback, fetcher, onDone) {
392392
var id = 'match' + match_index++
393393
var fetchResource = function (requestedTerm, id) {
394394
var docuri = requestedTerm.uri.split('#')[0]
395-
sf.nowOrWhenFetched(docuri, undefined, function (err, body, xhr) {
396-
if (err) {
395+
sf.nowOrWhenFetched(docuri, undefined, function (ok, body, xhr) {
396+
if (!ok) {
397397
console.log('Error following link to <' + requestedTerm.uri + '> in query: ' + body)
398398
}
399399
match(f, g, bindingsSoFar, level, fetcher, // match not match2 to look up any others necessary.

0 commit comments

Comments
 (0)