mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Inspecting the value's class seems to work now
This commit is contained in:
parent
d6fcf128ba
commit
7dd2cffa8e
1 changed files with 1 additions and 3 deletions
|
@ -290,9 +290,7 @@ module Spectator
|
|||
nil
|
||||
{% else %}
|
||||
# The stubbed value was something else entirely and cannot be cast to the return type.
|
||||
# `<Unknown>` should be replaced with the real type of %value (`%value.class`).
|
||||
# However, there's some weird bug that causes a segfault when trying to inspect the value.
|
||||
raise TypeCastError.new("#{_spectator_stubbed_name} received message #{ {{call}} } and is attempting to return a <Unknown>, but returned type must be `{{type}}`.")
|
||||
raise TypeCastError.new("#{_spectator_stubbed_name} received message #{ {{call}} } and is attempting to return a `#{%value.class}`, but returned type must be `#{ {{type}} }`.")
|
||||
{% end %}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue