Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #13471 from schneems/schneems/better-secrets-error…

…-message

Better missing `secret_key_base` error message
  • Loading branch information...
commit df09ce966e41b53b3d5723c4efb1e7470c452dd8 2 parents 9705df5 + d641a0c
@josevalim josevalim authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/application.rb
View
2  railties/lib/rails/application.rb
@@ -414,7 +414,7 @@ def build_original_fullpath(env) #:nodoc:
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
Please sign in to comment.
Something went wrong with that request. Please try again.