mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 18:38:48 +00:00
NearestFavoriteStationWidgetService: Show root cause of exception.
This commit is contained in:
parent
3c1b635cc4
commit
1f66669608
1 changed files with 2 additions and 1 deletions
|
@ -301,7 +301,8 @@ public class NearestFavoriteStationWidgetService extends JobIntentService {
|
||||||
log.info("Could not query departures for station " + stationId, x);
|
log.info("Could not query departures for station " + stationId, x);
|
||||||
} catch (final Exception x) {
|
} catch (final Exception x) {
|
||||||
setHeader(appWidgetId, favorite.name);
|
setHeader(appWidgetId, favorite.name);
|
||||||
setMessage(getString(R.string.nearest_favorite_station_widget_error_exception, x.toString()));
|
setMessage(getString(R.string.nearest_favorite_station_widget_error_exception,
|
||||||
|
Throwables.getRootCause(x).toString()));
|
||||||
appWidgetManager.updateAppWidget(appWidgetId, views);
|
appWidgetManager.updateAppWidget(appWidgetId, views);
|
||||||
log.info("Could not query departures for station " + stationId, x);
|
log.info("Could not query departures for station " + stationId, x);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue