mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:12:45 +08:00
FIX: an exception cause is itself an exception
This commit is contained in:
parent
fe870a1e54
commit
e58f67a0c0
|
@ -22,7 +22,7 @@ module TurboTests
|
|||
new(
|
||||
obj[:backtrace],
|
||||
obj[:message],
|
||||
obj[:cause]
|
||||
FakeException.from_obj(obj[:cause])
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -23,7 +23,7 @@ module TurboTests
|
|||
{
|
||||
backtrace: exception.backtrace,
|
||||
message: exception.message,
|
||||
cause: exception.cause
|
||||
cause: exception_to_json(exception.cause)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user