1 # -*- encoding: binary -*-
2 # Copyright (C) 2017 all contributors <repobrowse@80x24.org>
3 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
4 # frozen_string_literal: true
6 module Repobrowse::Error
8 env['rack.logger']&.error(msg)
9 b = "Internal server error\n"
10 r.halt [ 500, { 'Content-Type' => 'text/plain; charset=UTF-8' }, [ b ] ]