From e059ce2023fe697ee10e9161ba2732417cecdbd9 Mon Sep 17 00:00:00 2001 From: Dirk Kelly Date: Mon, 28 Feb 2011 13:42:50 +0800 Subject: [PATCH] Making the error message a bit more useful --- app/controllers/admin/imports_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/imports_controller.rb b/app/controllers/admin/imports_controller.rb index c611ce23..ab717bf1 100644 --- a/app/controllers/admin/imports_controller.rb +++ b/app/controllers/admin/imports_controller.rb @@ -34,7 +34,7 @@ module Admin rescue Exception => e logger.error "[Locomotive import] #{e.message} / #{e.backtrace}" - @error = t('errors.messages.invalid_theme_file') + @error = e.message flash[:alert] = t('flash.admin.imports.create.alert') render 'new'