Making the error message a bit more useful
This commit is contained in:
parent
70104e8f9d
commit
e059ce2023
@ -34,7 +34,7 @@ module Admin
|
|||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
logger.error "[Locomotive import] #{e.message} / #{e.backtrace}"
|
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')
|
flash[:alert] = t('flash.admin.imports.create.alert')
|
||||||
|
|
||||||
render 'new'
|
render 'new'
|
||||||
|
Loading…
Reference in New Issue
Block a user