From f3886e53c6f469ae3a04e9eff99bdec52a3fdd5f Mon Sep 17 00:00:00 2001 From: Akash Kava <39438041+ackava@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:32:05 +0530 Subject: [PATCH] Native to JSException converter fixed --- YantraJS.Core/Core/Error/JSError.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/YantraJS.Core/Core/Error/JSError.cs b/YantraJS.Core/Core/Error/JSError.cs index cb04cbdd..eabff840 100644 --- a/YantraJS.Core/Core/Error/JSError.cs +++ b/YantraJS.Core/Core/Error/JSError.cs @@ -127,7 +127,8 @@ public static JSValue From(Exception ex) { return jse.Error; } - return new JSError(new JSException(ex.ToString())); + var je = new JSException(ex.Message + "\r\n" + ex.ToString()); + return je.Error; } }