Added additional check.

This commit is contained in:
Thorsten Eckel 2015-07-16 15:12:33 +02:00
parent 70de454d48
commit a7a4bfd892

View file

@ -13,6 +13,7 @@ class Locale < ApplicationModel
} }
) )
fail "Can't load locales from #{url}" if !result
fail "Can't load locales from #{url}: #{result.error}" if !result.success? fail "Can't load locales from #{url}: #{result.error}" if !result.success?
ActiveRecord::Base.transaction do ActiveRecord::Base.transaction do