Fixed some error reporting.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3733 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-01-03 02:25:11 +00:00
parent 3eabe72299
commit 24cf18651a
3 changed files with 18 additions and 9 deletions

View File

@ -243,10 +243,6 @@ static bool _serialize_storeInternal(tf_task_t* task, tf_taskstub_t* to, buffer_
{
JS_SetPropertyStr(context, error, "message", message);
}
else
{
JS_FreeValue(context, message);
}
if (JS_IsError(context, exception))
{
JSValue stack = JS_GetPropertyStr(context, exception, "stack");