Skip to content

Commit

Permalink
don't print 404 errors to the console when fetching track data
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Jun 13, 2012
1 parent 9f34e84 commit 7af7490
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/SeqFeatureStore/NCList.js
Expand Up @@ -38,7 +38,11 @@ SeqFeatureStore.NCList.prototype.load = function() {
dojo.xhrGet({ url: url,
handleAs: "json",
load: Util.debugHandler( this, function(o) { this.loadSuccess(o, url); }),
error: dojo.hitch( this, function(e) { console.error(''+e); this.loadFail(e, url); } )
error: dojo.hitch( this, function(error) {
if( error.status != 404 )
console.error(''+error);
this.loadFail(error, url);
})
});
};

Expand Down

0 comments on commit 7af7490

Please sign in to comment.