diff options
Diffstat (limited to 'public/static/js/geotrain.js')
-rw-r--r-- | public/static/js/geotrain.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/public/static/js/geotrain.js b/public/static/js/geotrain.js index 9a937d1..3e0eec5 100644 --- a/public/static/js/geotrain.js +++ b/public/static/js/geotrain.js @@ -59,7 +59,10 @@ $(function() { }; var processLocation = function(loc) { - $.get('https://dbf.finalrewind.org/__geotrain/search', {lon: loc.coords.longitude, lat: loc.coords.latitude}, processResult); + $.get('https://dbf.finalrewind.org/__geotrain/search', {lon: loc.coords.longitude, lat: loc.coords.latitude}, processResult).fail(function(jqXHR, textStatus, errorThrown) { + removeStatus(); + showError("Fehler im Zuglokalisierungs-Backend: ", textStatus, errorThrown); + }); $('div.candidatestatus').text('Suche Züge…'); }; |