aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generator
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-06-20 15:43:25 +0200
committerJosé Valim <jose.valim@gmail.com>2009-06-20 15:43:25 +0200
commit181feecfb9343781ac03b724a34242257f35e1e6 (patch)
treea774d6f4021383a17fc0bc2c7ae2249ca80f82fd /railties/lib/generator
parent68739eed570c0754e9f974545491d16aeee50091 (diff)
downloadrails-181feecfb9343781ac03b724a34242257f35e1e6.tar.gz
rails-181feecfb9343781ac03b724a34242257f35e1e6.tar.bz2
rails-181feecfb9343781ac03b724a34242257f35e1e6.zip
First stub at app generators test.
Diffstat (limited to 'railties/lib/generator')
-rw-r--r--railties/lib/generator/generators/app.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generator/generators/app.rb b/railties/lib/generator/generators/app.rb
index f5e83460d7..b54f8dc41f 100644
--- a/railties/lib/generator/generators/app.rb
+++ b/railties/lib/generator/generators/app.rb
@@ -167,7 +167,7 @@ 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}"
+ raise Error, "The template [#{options[:template]}] could not be loaded. Error: #{e}"
end
def freeze?