From a7a4bfd892f13074f8df181c6f9e6af675b75ad5 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 16 Jul 2015 15:12:33 +0200 Subject: [PATCH] Added additional check. --- app/models/locale.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/locale.rb b/app/models/locale.rb index 5635f7ae6..6381e3b9f 100644 --- a/app/models/locale.rb +++ b/app/models/locale.rb @@ -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? ActiveRecord::Base.transaction do