Permalink
Browse files

Avoid including DB details in exception messages

The keys are quite sufficient; we shouldn't be throwing passwords
around.
  • Loading branch information...
1 parent 88e60a4 commit ad1415381e4d6a74ac418b1bf4ba042b1f369765 @matthewd matthewd committed Apr 2, 2014
@@ -227,7 +227,7 @@ def resolve_symbol_connection(spec)
if config = configurations[spec.to_s]
resolve_connection(config)
else
- raise(AdapterNotSpecified, "'#{spec}' database is not configured. Available configuration: #{configurations.inspect}")
+ raise(AdapterNotSpecified, "'#{spec}' database is not configured. Available: #{configurations.keys.inspect}")
end
end

0 comments on commit ad14153

Please sign in to comment.