lib/getch/device.rb in getch-0.7.3 vs lib/getch/device.rb in getch-0.11.0
- old
+ new
@@ -50,9 +50,11 @@
end
private
def load_devs
+ raise ArgumentError, 'No disk for root, use --disk DISK.' unless OPTIONS[:disk]
+
if File.exist? @file
DEVS.merge! YAML.load_file @file
else
save
warn "Init devs at #{@file}"