diff options
author | schneems <richard.schneeman@gmail.com> | 2013-12-24 11:08:16 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2013-12-24 11:08:16 -0500 |
commit | d641a0cf0d89728cecaac0c7f7791bf594d079e0 (patch) | |
tree | 740ecd034bc79fa34f2e921dad98bfd9408faf7a /railties | |
parent | f4f496dfeb8ff1a9e78d12d943235c0a630ff55c (diff) | |
download | rails-d641a0cf0d89728cecaac0c7f7791bf594d079e0.tar.gz rails-d641a0cf0d89728cecaac0c7f7791bf594d079e0.tar.bz2 rails-d641a0cf0d89728cecaac0c7f7791bf594d079e0.zip |
Better missing `secret_key_base` error message
Previously the error was:
```
RuntimeError: You must set secret_key_base in your app's config
```
Will now be:
```
RuntimeError: Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml`
```
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/application.rb | 2 |
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 |