Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #51 from dbsystel/feature/fix-stada-404
Browse files Browse the repository at this point in the history
Return empty result when stada returns 404
  • Loading branch information
lightsprint09 authored Dec 11, 2017
2 parents 52eb830 + f40519e commit 342ee23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Station/StationLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ class StationLoader extends BaseLoader {
.then(result => {
if (StationLoader.between(response.status, 200, 399)) {
return result.result || [];
}else if (response.status == 404) {
return [];
} else {
const errorMessage = `${response.status} at StaDa: ${result.errMsg}`;
console.error(errorMessage, response.url, result);
Expand Down

0 comments on commit 342ee23

Please sign in to comment.