Skip to content

Commit 070a3d1

Browse files
authored
Wrap exception from deferred to capture the current stack trace (#13)
1 parent f2e70ba commit 070a3d1

File tree

1 file changed

+1
-1
lines changed
  • acp/src/commonMain/kotlin/com/agentclientprotocol/protocol

1 file changed

+1
-1
lines changed

acp/src/commonMain/kotlin/com/agentclientprotocol/protocol/Protocol.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ private fun convertJsonRpcExceptionIfPossible(jsonRpcException: JsonRpcException
498498
}
499499

500500
else -> {
501-
return jsonRpcException
501+
return IllegalStateException(jsonRpcException.message, jsonRpcException)
502502
}
503503
}
504504
}

0 commit comments

Comments
 (0)