From 7805678cedf82278b5e3731fb7c60426fb6d08fe Mon Sep 17 00:00:00 2001 From: Laurent Clouet Date: Sat, 16 May 2015 22:35:16 +0100 Subject: [PATCH] Do not hardcode the ui type value --- src/com/sheepit/client/standalone/Worker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/sheepit/client/standalone/Worker.java b/src/com/sheepit/client/standalone/Worker.java index 6ff724d..d2ce58b 100644 --- a/src/com/sheepit/client/standalone/Worker.java +++ b/src/com/sheepit/client/standalone/Worker.java @@ -296,7 +296,7 @@ public class Worker { case GuiSwing.type: if (java.awt.GraphicsEnvironment.isHeadless()) { System.out.println("Graphical ui can not be launch."); - System.out.println("You should set a DISPLAY or use a text ui (via -ui oneline or -ui text)."); + System.out.println("You should set a DISPLAY or use a text ui (with -ui " + GuiTextOneLine.type + " or -ui " + GuiText.type + ")."); System.exit(3); } gui = new GuiSwing();