diff --git a/app/controllers/concerns/exception_handler.rb b/app/controllers/concerns/exception_handler.rb index 42b7932b..3925f42c 100644 --- a/app/controllers/concerns/exception_handler.rb +++ b/app/controllers/concerns/exception_handler.rb @@ -22,7 +22,7 @@ module ExceptionHandler flash[:error] = I18n.t('errors.site_not_found') - ExceptionNotifier.notify_exception(exception) + ExceptionNotifier.notify_exception(exception, data: { usuarie: current_usuarie&.id, path: request.fullpath }) redirect_to sites_path end @@ -32,7 +32,7 @@ module ExceptionHandler flash[:error] = I18n.t('errors.page_unauthorized') - ExceptionNotifier.notify_exception(exception, data: { usuarie: current_usuarie.id, path: request.fullpath }) + ExceptionNotifier.notify_exception(exception, data: { usuarie: current_usuarie&.id, path: request.fullpath }) redirect_to site_path(site) end