Skip to content

Commit cbc4740

Browse files
author
perliedman
committed
2.6.0
1 parent 5282225 commit cbc4740

3 files changed

+8
-9
lines changed

dist/leaflet-routing-machine.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -1972,17 +1972,16 @@ if (typeof module !== undefined) module.exports = polyline;
19721972
if (!err) {
19731973
try {
19741974
data = JSON.parse(resp.responseText);
1975+
try {
1976+
return this._routeDone(data, wps, callback, context);
1977+
} catch (ex) {
1978+
statusCode = -3;
1979+
errorMessage = ex.toString();
1980+
}
19751981
} catch (ex) {
19761982
statusCode = -2;
19771983
errorMessage = 'Error parsing OSRM response: ' + ex.toString();
19781984
}
1979-
1980-
try {
1981-
return this._routeDone(data, wps, callback, context);
1982-
} catch (ex) {
1983-
statusCode = -3;
1984-
errorMessage = ex.toString();
1985-
}
19861985
}
19871986

19881987
callback.call(context || callback, {

0 commit comments

Comments
 (0)