mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: FakeExceptions should have the original class name
This commit is contained in:
@@ -21,6 +21,7 @@ module TurboTests
|
||||
def exception_to_json(exception)
|
||||
if exception
|
||||
{
|
||||
class_name: exception.class.name.to_s,
|
||||
backtrace: exception.backtrace,
|
||||
message: exception.message,
|
||||
cause: exception_to_json(exception.cause)
|
||||
|
||||
Reference in New Issue
Block a user