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()