diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-19 12:45:08 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-19 16:11:55 +0200 |
commit | 6658711775d718f5e1b8b8a86c34c5c0c71fe186 (patch) | |
tree | 72e29f034de4b5999c8b0f0162c302b32626b216 /railties/lib/generator/generators | |
parent | 98adc9a42e856b59952ba1513361efae5175e52a (diff) | |
download | rails-6658711775d718f5e1b8b8a86c34c5c0c71fe186.tar.gz rails-6658711775d718f5e1b8b8a86c34c5c0c71fe186.tar.bz2 rails-6658711775d718f5e1b8b8a86c34c5c0c71fe186.zip |
Template wwas not found? Raise an error.
Diffstat (limited to 'railties/lib/generator/generators')
-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? |