lib/alf/environment/folder.rb in alf-0.10.0 vs lib/alf/environment/folder.rb in alf-0.10.1
- old
+ new
@@ -34,11 +34,11 @@
# (see Environment#dataset)
def dataset(name)
if file = find_file(name)
Reader.reader(file, self)
else
- raise "No such dataset #{name} (#{@folder})"
+ raise NoSuchDatasetError, "No such dataset #{name} (#{@folder})"
end
end
protected
@@ -57,6 +57,6 @@
end
Environment.register(:folder, self)
end # class Folder
end # class Environment
-end # module Alf
\ No newline at end of file
+end # module Alf