AbstractHafasClientInterfaceProvider: Exception message cosmetics.

This commit is contained in:
Andreas Schildbach 2018-12-01 12:31:43 +01:00
parent a199d757d2
commit d1f03705d0

View file

@ -522,7 +522,7 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
return new QueryTripsResult(header, QueryTripsResult.Status.UNKNOWN_LOCATION);
if ("CGI_READ_FAILED".equals(err))
return new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN);
throw new RuntimeException(err + (errTxt != null ? " " + errTxt : ""));
throw new RuntimeException(err + " " + errTxt);
}
final JSONObject res = svcRes.getJSONObject("res");