diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-04 18:52:11 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-04 18:52:11 +0200 |
commit | 9201d73865ae19850b92442dbd8a629e9891e868 (patch) | |
tree | 40fe91192a91bf443b898251e0fad3ec62feeb05 /lib | |
parent | 8dc2542721ed5c0c2f5f44ff408306c7328adce7 (diff) | |
download | rails-9201d73865ae19850b92442dbd8a629e9891e868.tar.gz rails-9201d73865ae19850b92442dbd8a629e9891e868.tar.bz2 rails-9201d73865ae19850b92442dbd8a629e9891e868.zip |
Better error reporting
Diffstat (limited to 'lib')
-rw-r--r-- | lib/active_file/site.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_file/site.rb b/lib/active_file/site.rb index 1c71f74f0d..19cbbc754e 100644 --- a/lib/active_file/site.rb +++ b/lib/active_file/site.rb @@ -4,8 +4,8 @@ class ActiveFile::Site begin require "active_file/site/#{site.to_s.downcase}_site" ActiveFile::Site.const_get(:"#{site}Site").new(**options) - rescue LoadError - puts "Couldn't configure unknow site: #{site}" + rescue LoadError => e + puts "Couldn't configure site: #{site} (#{e.message})" end end |