Improve the warning message for FromJSValue<CColor> when trying to convert a non-object to CColor.

Reviewed by: wraitii
Differential Revision: https://code.wildfiregames.com/D2778
This was SVN commit r23727.
This commit is contained in:
Imarok
2020-06-01 16:09:28 +00:00
parent 37980a3e48
commit c4625b14df
@@ -93,7 +93,7 @@ template<> bool ScriptInterface::FromJSVal<CColor>(JSContext* cx, JS::HandleValu
JSAutoRequest rq(cx);
if (!v.isObject())
FAIL("JS::HandleValue not an object");
FAIL("CColor has to be an object");
JS::RootedObject obj(cx, &v.toObject());