diff options
-rw-r--r-- | railties/lib/generator/generators/app.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/generator/generators/app.rb b/railties/lib/generator/generators/app.rb index 8b88278ab5..4ca0c92248 100644 --- a/railties/lib/generator/generators/app.rb +++ b/railties/lib/generator/generators/app.rb @@ -165,6 +165,8 @@ module Rails::Generators def apply_rails_template apply options[:template] if options[:template] + rescue LoadError, Errno::ENOENT => e + raise "The template [#{template}] could not be loaded. Error: #{e}" end def freeze? |