Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit ca757f7

Browse files
authored
Merge pull request #647 from RobertSzkutak/rob
Fix for #620 and #224: prevent implicit conversion of nil to string
2 parents 305d9c5 + 470ac6b commit ca757f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

deploy/lib/server_config.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ def initialize(options)
6565
@config_file = @properties["ml.config.file"]
6666

6767
@properties["ml.server"] = @properties["ml.#{@environment}-server"] unless @properties["ml.server"]
68+
if (@properties["ml.server"] == nil)
69+
raise "Error! ml.server not set. You may be missing deploy/" + @properties["environment"] + ".properties"
70+
end
6871

6972
@hostname = @properties["ml.server"]
7073
@bootstrap_port_four = @properties["ml.bootstrap-port-four"]
@@ -128,7 +131,7 @@ def info
128131
logger.info "IS_JAR: #{@@is_jar}"
129132
logger.info "Properties:"
130133
@properties.sort {|x,y| x <=> y}.each do |k, v|
131-
logger.info k + ": " + v
134+
logger.info k + ": " + v.to_s
132135
end
133136
end
134137
return true

0 commit comments

Comments
 (0)