Changeset ea7ddaf for apps


Ignore:
Timestamp:
Apr 18, 2019 1:17:45 PM (12 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5c81c00
Parents:
a8ad30b3
Message:

Console: Improve error message when graphs disabled (ticket #2452)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/helpers/GraphHelper.java

    ra8ad30b3 rea7ddaf  
    2020import net.i2p.router.web.SummaryListener;
    2121import net.i2p.stat.Rate;
     22import net.i2p.util.SystemVersion;
    2223
    2324/**
     
    437438    public String getAllMessages() {
    438439        if (StatSummarizer.isDisabled(_context)) {
    439             addFormError("Graphing not supported with this JVM: " +
    440                         System.getProperty("java.vendor") + ' ' +
     440            addFormError("Graphing not supported with this JVM or OS");
     441            addFormNotice("JVM: " + System.getProperty("java.vendor") + ' ' +
    441442                         System.getProperty("java.version") + " (" +
    442443                         System.getProperty("java.runtime.name") + ' ' +
    443444                         System.getProperty("java.runtime.version") + ')');
     445            addFormNotice("OS: " + System.getProperty("os.name") + ' ' +
     446                           System.getProperty("os.arch") + ' ' +
     447                           System.getProperty("os.version"));
     448            if (!SystemVersion.isMac() && !SystemVersion.isWindows())
     449                addFormNotice("Installing the fonts-dejavu package and then restarting I2P may resolve the issue");
     450            addFormNotice("Check logs for more information");
    444451            if (_context.getProperty(PROP_REFRESH, 0) >= 0) {
    445452                // force no refresh, save silently
Note: See TracChangeset for help on using the changeset viewer.