app/controllers/alchemy/admin/base_controller.rb
# Displays an error notice in the Alchemy backend.
Displays an error notice in the Alchemy backend.
Displays an error notice in the Alchemy backend .
def show_error_notice(e)
        @error = e
        @notice = e.message[0..255]
        @trace = e.backtrace[0..50]
        if request.xhr?
          render action: "error_notice"
        else
          render '500', status: 500
        end
      end
def show_error_notice ( e ) @error = e @notice = e . message [ 0 .. 255 ] @trace = e . backtrace [ 0 .. 50 ] if request . xhr? render action : "error_notice" else render '500' , status : 500 end end
Displays an error notice in the Alchemy backend.
Displays an error notice in the Alchemy backend .
# truncate the message, because very long error messages (i.e from mysql2) causes cookie overflow errors
e
<not_specific>