I got a crash because of a try! at:
|
let exceptionClass = try! exception.get("class") |
The error message was "stack level too deep". However, when I turned it into a try?, the error message printed fine, but without the exceptionClass name.
I can open a pr for this, but I wasn't sure how you'd like to see this fixed. I have this:
public var description: String {
if let exceptionClass = try? exception.get("class") {
return "\(exceptionClass): \(exception)"
} else {
return "\(exception)"
}
}
Also don't know if there's a better way to get the exception name without this error to happen.
I got a crash because of a
try!at:RubyGateway/Sources/RubyGateway/RbError.swift
Line 217 in 416dd4e
The error message was "stack level too deep". However, when I turned it into a
try?, the error message printed fine, but without the exceptionClass name.I can open a pr for this, but I wasn't sure how you'd like to see this fixed. I have this:
Also don't know if there's a better way to get the exception name without this error to happen.