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:
Kenji Nagahashi
2012-03-09 16:48:11 -08:00
parent f05287c8ca
commit 64f24d4c66
@@ -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>");
}