lib/yamg.rb in yamg-0.3.1 vs lib/yamg.rb in yamg-0.3.3

- old
+ new

@@ -40,9 +40,11 @@ end def load_images(dir) return [dir] unless File.extname(dir).empty? Dir["#{dir}/*.{svg,png,jpg}"].map { |f| File.basename(f) } + rescue TypeError + puts_and_exit("Bad config file path: #{dir}") end def run(comm) puts comm if debug system(comm)