add error message as description

This commit is contained in:
akaessens 2020-09-27 15:09:34 +02:00
parent f579094cec
commit 3ba50f3df7
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ public class FbEventScraper extends AsyncTask<Void, Void, Void> {
} catch (JSONException | NullPointerException e) { } catch (JSONException | NullPointerException e) {
name = document.title(); name = document.title();
description = scraper.main.get().getString(R.string.error_scraping);
try { try {
image_url = document.select("div[id*=event_header]") image_url = document.select("div[id*=event_header]")
.select("img").first().attr("src"); .select("img").first().attr("src");