Index: ps/trunk/source/gui/ObjectBases/IGUIObject.cpp =================================================================== --- ps/trunk/source/gui/ObjectBases/IGUIObject.cpp +++ ps/trunk/source/gui/ObjectBases/IGUIObject.cpp @@ -431,7 +431,7 @@ if (!JS_CallFunctionValue(cx, obj, handlerVal, paramData, &result)) { - JS_ReportError(cx, "Errors executing script event \"%s\"", eventName.c_str()); + LOGERROR("Errors executing script event \"%s\"", eventName.c_str()); return false; } return JS::ToBoolean(result); Index: ps/trunk/source/gui/Scripting/JSInterface_IGUIObject.cpp =================================================================== --- ps/trunk/source/gui/Scripting/JSInterface_IGUIObject.cpp +++ ps/trunk/source/gui/Scripting/JSInterface_IGUIObject.cpp @@ -122,7 +122,7 @@ return true; } - JS_ReportError(cx, "Property '%s' does not exist!", propName.c_str()); + LOGERROR("Property '%s' does not exist!", propName.c_str()); return false; } @@ -159,7 +159,7 @@ { if (vp.isPrimitive() || vp.isNull() || !JS_ObjectIsFunction(cx, &vp.toObject())) { - JS_ReportError(cx, "on- event-handlers must be functions"); + LOGERROR("on- event-handlers must be functions"); return result.fail(JSMSG_NOT_FUNCTION); } @@ -172,7 +172,7 @@ if (e->SettingExists(propName)) return e->m_Settings[propName]->FromJSVal(cx, vp, true) ? result.succeed() : result.fail(JSMSG_TYPE_ERR_BAD_ARGS); - JS_ReportError(cx, "Property '%s' does not exist!", propName.c_str()); + LOGERROR("Property '%s' does not exist!", propName.c_str()); return result.fail(JSMSG_UNDEFINED_PROP); } @@ -199,7 +199,7 @@ return result.succeed(); } - JS_ReportError(cx, "Only event handlers can be deleted from GUI objects!"); + LOGERROR("Only event handlers can be deleted from GUI objects!"); return result.fail(JSMSG_UNDEFINED_PROP); }