Skip to content

Commit

Permalink
Native to JSException converter fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Aug 28, 2024
1 parent d9ffd39 commit f3886e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion YantraJS.Core/Core/Error/JSError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit f3886e5

Please sign in to comment.