Fix formatting of #1504

This commit is contained in:
TheFrenchGhosty 2020-11-30 15:56:01 +01:00
parent 417fa3cf3c
commit ca781651cb

View File

@ -18,7 +18,7 @@ def error_template_helper(env : HTTP::Server::Context, config : Config, locale :
issue_template = %(Date: `#{Time::Format::ISO_8601_DATE_TIME.format(Time.utc)}`) issue_template = %(Date: `#{Time::Format::ISO_8601_DATE_TIME.format(Time.utc)}`)
issue_template += %(\nRoute: `#{env.request.resource}`) issue_template += %(\nRoute: `#{env.request.resource}`)
issue_template += %(\nVersion: `#{SOFTWARE["version"]} @ #{SOFTWARE["branch"]}`) issue_template += %(\nVersion: `#{SOFTWARE["version"]} @ #{SOFTWARE["branch"]}`)
#issue_template += %(\nPreferences: ```#{env.get("preferences").as(Preferences).to_json}```) # issue_template += %(\nPreferences: ```#{env.get("preferences").as(Preferences).to_json}```)
issue_template += %(\nBacktrace: \n```\n#{exception.inspect_with_backtrace}```) issue_template += %(\nBacktrace: \n```\n#{exception.inspect_with_backtrace}```)
error_message = <<-END_HTML error_message = <<-END_HTML
Looks like you've found a bug in Invidious. Please open a new issue Looks like you've found a bug in Invidious. Please open a new issue