I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit b8815fc6 authored by zzz's avatar zzz
Browse files

Console: Catch graph error in Docker (Gitlab #383)

parent 537d6ef0
No related branches found
No related tags found
No related merge requests found
...@@ -349,9 +349,14 @@ class SummaryRenderer { ...@@ -349,9 +349,14 @@ class SummaryRenderer {
// NPE here if system is missing fonts - see ticket #915 // NPE here if system is missing fonts - see ticket #915
graph = new RrdGraph(def); graph = new RrdGraph(def);
} catch (NullPointerException npe) { } catch (NullPointerException npe) {
_log.error("Error rendering", npe); _log.error("Error rendering graph", npe);
StatSummarizer.setDisabled(_context); StatSummarizer.setDisabled(_context);
throw new IOException("Error rendering - disabling graph generation. Missing font? See http://trac.i2p2.i2p/ticket/915"); throw new IOException("Error rendering - disabling graph generation. Missing font?");
} catch (Error e) {
// Docker InternalError see Gitlab #383
_log.error("Error rendering graph", e);
StatSummarizer.setDisabled(_context);
throw new IOException("Error rendering - disabling graph generation. Missing font?");
} }
int totalWidth = graph.getRrdGraphInfo().getWidth(); int totalWidth = graph.getRrdGraphInfo().getWidth();
int totalHeight = graph.getRrdGraphInfo().getHeight(); int totalHeight = graph.getRrdGraphInfo().getHeight();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment