mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 00:09:55 +00:00
Navitia: If query returns 'not found' and JSON from error page could not be parsed, link the original exception.
This commit is contained in:
parent
bb76498c87
commit
ead34426c6
1 changed files with 2 additions and 2 deletions
|
@ -959,7 +959,7 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider
|
|||
}
|
||||
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)
|
||||
{
|
||||
throw new ParserException(jsonExc);
|
||||
throw new ParserException("Cannot parse error content, original exception linked", fnfExc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue