feat: improve error message if route cannot be found (fix #99)

This commit is contained in:
Gautier Pelloux-Prayer 2018-02-02 21:49:05 +01:00
parent 6d3a7a6b1c
commit a636232f10

View file

@ -34,6 +34,9 @@ BR.Message = L.Class.extend({
},
showError: function (err) {
if (err == 'Error: target island detected for section 0\n') {
err = 'Error: cannot find a route for given points. Maybe try to move them closer to roads?';
}
this._show(err, 'error');
},