diff --git a/src/Bannerlord.LauncherManager.Native.TypeScript/src/Bannerlord.LauncherManager.hpp b/src/Bannerlord.LauncherManager.Native.TypeScript/src/Bannerlord.LauncherManager.hpp index 2755c42..698899c 100644 --- a/src/Bannerlord.LauncherManager.Native.TypeScript/src/Bannerlord.LauncherManager.hpp +++ b/src/Bannerlord.LauncherManager.Native.TypeScript/src/Bannerlord.LauncherManager.hpp @@ -189,8 +189,9 @@ namespace Bannerlord::LauncherManager } catch (const Napi::Error &e) { + const auto stack = e.Value().Get("stack").As(); std::wstring_convert, char16_t> conv; - return Create(return_value_void{Copy(conv.from_bytes(e.Message()))}); + return Create(return_value_void{Copy(stack.Utf16Value())}); } } static return_value_json *getLoadOrder(void *p_owner) noexcept