Skip to content
Browse files

Added some safety against missing mould files

  • Loading branch information...
1 parent 403ab86 commit b4b8ed8089877fead5b73689239210e537222c4b @ELLIOTTCABLE committed Mar 5, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/jello
View
4 bin/jello
@@ -59,7 +59,9 @@ The follow moulds are included for your enjoyment:
end.parse!
ARGV.each do |mould|
- require Jello::Mould.find(mould)
+ mould_file = Jello::Mould.find(mould)
+ require mould_file if mould_file
+ puts "!! Unable to locate any moulds matching '#{mould}'!" unless mould_file
end
# http://github.com/chneukirchen/rack/tree/ed86dfd676dcb46e276b6906f017df514e5632f9/bin/rackup#L153-164

0 comments on commit b4b8ed8

Please sign in to comment.
Something went wrong with that request. Please try again.