lib/legion/data/model.rb in legion-data-0.1.0 vs lib/legion/data/model.rb in legion-data-0.1.1

- old
+ new

@@ -24,12 +24,12 @@ def load_sequel_model(model) Legion::Logging.debug("Trying to load #{model}.rb") require_relative "models/#{model}" @loaded_models << model Legion::Logging.debug("Successfully loaded #{model}") - rescue LoadError => ex + rescue LoadError => e Legion::Logging.fatal("Failed to load #{model}") - raise ex unless Legion::Settings[:data][:models][:continue_on_fail] + raise e unless Legion::Settings[:data][:models][:continue_on_fail] end end end end