Skip to content

Commit 14db3ba

Browse files
committed
print stacktrace
1 parent 3224a5b commit 14db3ba

File tree

1 file changed

+2
-1
lines changed
  • sparkler-core/sparkler-plugins/fetcher-chrome/src/main/java/edu/usc/irds/sparkler/plugin

1 file changed

+2
-1
lines changed

sparkler-core/sparkler-plugins/fetcher-chrome/src/main/java/edu/usc/irds/sparkler/plugin/FetcherChrome.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,12 @@ public FetchedData fetch(Resource resource) throws Exception {
234234
if(json.get("selenium") != null && json.get("selenium") instanceof Map) {
235235
try {
236236
scripter.runScript((Map<String, Object>) json.get("selenium"), null, null);
237-
} catch (Exception ignored){
237+
} catch (Exception e){
238238
Map<String, Object> tempmap = new HashMap<>();
239239
tempmap.put("type", "file");
240240
tempmap.put("targetdir", "/dbfs/FileStore/screenshots/"+resource.getCrawlId()+System.currentTimeMillis());
241241
scripter.screenshot(tempmap);
242+
e.printStackTrace();
242243
}
243244
List<String> snapshots = scripter.getSnapshots();
244245
html = String.join(",", snapshots);

0 commit comments

Comments
 (0)