mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-07-18 13:37:20 +00:00
HER-1993: In JobResource, write error message instead of throwing RuntimeException when it failed to read
job log or crawl log.
This commit is contained in:
@@ -364,7 +364,7 @@ public class JobResource extends BaseResource {
|
||||
pw.println("</div>");
|
||||
}
|
||||
} catch (IOException ioe) {
|
||||
throw new RuntimeException(ioe);
|
||||
pw.println("<div class=\"error\">error reading job log</div>");
|
||||
}
|
||||
}
|
||||
pw.println("</div>");
|
||||
@@ -434,7 +434,7 @@ public class JobResource extends BaseResource {
|
||||
pw.println();
|
||||
}
|
||||
} catch (IOException ioe) {
|
||||
throw new RuntimeException(ioe);
|
||||
pw.println("--error reading crawl log--");
|
||||
}
|
||||
pw.println("</pre>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user