mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Label exception with type
This commit is contained in:
parent
6307024af3
commit
8310ea2aa5
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ module Spectator::Formatting
|
|||
|
||||
# Display a single error and its stacktrace.
|
||||
private def display_error(indent, error) : Nil
|
||||
indent.line(Color.error("Caused by: #{error.message} (#{error.class})"))
|
||||
indent.line(Color.error(LabeledText.new(error.class.to_s, error)))
|
||||
indent.increase do
|
||||
error.backtrace.each do |frame|
|
||||
indent.line(Color.error(frame))
|
||||
|
|
Loading…
Reference in a new issue