mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Display first line only after "Error:"
This commit is contained in:
parent
ca03e75b99
commit
53c9dd0445
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ module Spectator::Formatting
|
||||||
# Produces the stack trace for an errored result.
|
# Produces the stack trace for an errored result.
|
||||||
private def error_stacktrace(indent)
|
private def error_stacktrace(indent)
|
||||||
error = @result.error
|
error = @result.error
|
||||||
indent.line(Color.error(LabeledText.new("Error", error)))
|
first_line = error.message.try(&.lines).try(&.first)
|
||||||
|
indent.line(Color.error(LabeledText.new("Error", first_line)))
|
||||||
indent.line
|
indent.line
|
||||||
indent.increase do
|
indent.increase do
|
||||||
loop do
|
loop do
|
||||||
|
|
Loading…
Reference in a new issue