FIX: an exception cause is itself an exception
This commit is contained in:
parent
fe870a1e54
commit
e58f67a0c0
|
@ -22,7 +22,7 @@ module TurboTests
|
||||||
new(
|
new(
|
||||||
obj[:backtrace],
|
obj[:backtrace],
|
||||||
obj[:message],
|
obj[:message],
|
||||||
obj[:cause]
|
FakeException.from_obj(obj[:cause])
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,7 +23,7 @@ module TurboTests
|
||||||
{
|
{
|
||||||
backtrace: exception.backtrace,
|
backtrace: exception.backtrace,
|
||||||
message: exception.message,
|
message: exception.message,
|
||||||
cause: exception.cause
|
cause: exception_to_json(exception.cause)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue