aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2013-12-24 08:22:30 -0800
committerJosé Valim <jose.valim@plataformatec.com.br>2013-12-24 08:22:30 -0800
commitdf09ce966e41b53b3d5723c4efb1e7470c452dd8 (patch)
treea1c73eb57f3b4e436dacccbde95d82a0277edbdc /railties/lib
parent9705df5c2bf29058c8e7c8d4fa91b95ffd3a74c9 (diff)
parentd641a0cf0d89728cecaac0c7f7791bf594d079e0 (diff)
downloadrails-df09ce966e41b53b3d5723c4efb1e7470c452dd8.tar.gz
rails-df09ce966e41b53b3d5723c4efb1e7470c452dd8.tar.bz2
rails-df09ce966e41b53b3d5723c4efb1e7470c452dd8.zip
Merge pull request #13471 from schneems/schneems/better-secrets-error-message
Better missing `secret_key_base` error message
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb
index 5b20c178eb..05acd78d98 100644
--- a/railties/lib/rails/application.rb
+++ b/railties/lib/rails/application.rb
@@ -414,7 +414,7 @@ module Rails
def validate_secret_key_config! #:nodoc:
if secrets.secret_key_base.blank? && config.secret_token.blank?
- raise "You must set secret_key_base in your app's config"
+ raise "Missing `secret_key_base` for '#{Rails.env}' environment, set this value in `config/secrets.yml`"
end
end
end