Making the error message a bit more useful

This commit is contained in:
Dirk Kelly 2011-02-28 13:42:50 +08:00
parent 70104e8f9d
commit e059ce2023

View File

@ -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'