Unverified 提交 8ab34e08 authored 作者: Noel Grandin's avatar Noel Grandin 提交者: GitHub

Merge pull request #1785 from grandinj/1774_h2_browser_message

issue #1774 improve h2 browser message
...@@ -127,6 +127,12 @@ Depending on your platform and environment, there are multiple ways to start the ...@@ -127,6 +127,12 @@ Depending on your platform and environment, there are multiple ways to start the
</td> </td>
</tr> </tr>
</table> </table>
<p>
If the console startup procedure is unable to locate the default system web browser,
an error message may be displayed. It is possible to explicitly tell H2 which
program/script to use when opening a system web browser by setting either the BROWSER
environment variable, or the h2.browser java property.
</p>
<h3>Firewall</h3> <h3>Firewall</h3>
<p> <p>
......
...@@ -718,8 +718,8 @@ public class Server extends Tool implements Runnable, ShutdownHandler { ...@@ -718,8 +718,8 @@ public class Server extends Tool implements Runnable, ShutdownHandler {
if (!ok) { if (!ok) {
// No success in detection. // No success in detection.
throw new Exception( throw new Exception(
"Browser detection failed and system property " + "Browser detection failed, and java property 'h2.browser' " +
SysProperties.H2_BROWSER + " not set"); "and environment variable BROWSER are not set to a browser executable.");
} }
} }
} catch (Exception e) { } catch (Exception e) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论