Navitia: If query returns 'not found' and JSON from error page could not be parsed, link the original exception.

This commit is contained in:
Andreas Schildbach 2016-03-09 13:12:16 +01:00
parent bb76498c87
commit ead34426c6

View file

@ -959,7 +959,7 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider
} }
catch (final JSONException jsonExc) catch (final JSONException jsonExc)
{ {
throw new ParserException(jsonExc); throw new ParserException("Cannot parse error content, original exception linked", fnfExc);
} }
} }
} }
@ -1183,7 +1183,7 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider
} }
catch (final JSONException jsonExc) catch (final JSONException jsonExc)
{ {
throw new ParserException(jsonExc); throw new ParserException("Cannot parse error content, original exception linked", fnfExc);
} }
} }
} }