lib/comana/machineinfo.rb in comana-0.0.7 vs lib/comana/machineinfo.rb in comana-0.0.8
- old
+ new
@@ -22,10 +22,13 @@
MachineInfo.new data
end
def get_info(host)
series = host.sub(/\d*$/, "")
- raise NoEntryError unless @data.has_key?(series)
+ unless @data.has_key?(series)
+ raise NoEntryError,
+ "#{series}"
+ end
@data[series]
end
end