aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-06-19 12:45:08 +0200
committerJosé Valim <jose.valim@gmail.com>2009-06-19 16:11:55 +0200
commit6658711775d718f5e1b8b8a86c34c5c0c71fe186 (patch)
tree72e29f034de4b5999c8b0f0162c302b32626b216
parent98adc9a42e856b59952ba1513361efae5175e52a (diff)
downloadrails-6658711775d718f5e1b8b8a86c34c5c0c71fe186.tar.gz
rails-6658711775d718f5e1b8b8a86c34c5c0c71fe186.tar.bz2
rails-6658711775d718f5e1b8b8a86c34c5c0c71fe186.zip
Template wwas not found? Raise an error.
-rw-r--r--railties/lib/generator/generators/app.rb2
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?