Skip to content

Commit 1ad5bc9

Browse files
committed
Warning
1 parent 4aac100 commit 1ad5bc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/jruby_art/runner.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ def show_help
152152

153153
def show_version
154154
require 'erb'
155-
warn 'JDK8 is preferred' unless ENV_JAVA['java.specification.version'] == '1.8'
155+
WARNING = 'WARNING: JDK8 is preferred'
156+
warn WARNING unless ENV_JAVA['java.specification.version'] == '1.8'
156157
template = ERB.new <<-EOF
157158
JRubyArt version <%= JRubyArt::VERSION %>
158159
Ruby version <%= RUBY_VERSION %>

0 commit comments

Comments
 (0)