Merge pull request #102 from bagage/fix/improve-error-no-route-99
feat: improve error message if route cannot be found (fix #99)
This commit is contained in:
commit
f3d08c7136
1 changed files with 3 additions and 0 deletions
|
|
@ -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');
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue