From e4e5d94c68201a3e09739abc730bbd02b8191ab3 Mon Sep 17 00:00:00 2001 From: Marius Andra Date: Tue, 23 Jul 2024 14:48:09 +0200 Subject: [PATCH] fix --- hogvm/typescript/src/stl/stl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hogvm/typescript/src/stl/stl.ts b/hogvm/typescript/src/stl/stl.ts index e9c4c92dcbca0..45e48f4170522 100644 --- a/hogvm/typescript/src/stl/stl.ts +++ b/hogvm/typescript/src/stl/stl.ts @@ -114,7 +114,7 @@ export const STL: Record } else if (x.__hogDate__) { return toHogDate(x.year, x.month, x.day) } else if (x.__hogError__) { - return newHogError(x.name, x.message, x.payload) + return newHogError(x.type, x.message, x.payload) } // All other objects will const map = new Map()