Skip to content

Commit

Permalink
Merge pull request rails#13471 from schneems/schneems/better-secrets-…
Browse files Browse the repository at this point in the history
…error-message

Better missing `secret_key_base` error message
  • Loading branch information
José Valim committed Dec 24, 2013
2 parents 9705df5 + d641a0c commit df09ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df09ce9

Please sign in to comment.