Skip to content

Commit 5f90f23

Browse files
committed
Differentiate error for applying and constructing
1 parent a9be1e7 commit 5f90f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spidermonkey/pyobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ js_call(JSContext* jscx, JSObject* jsobj, uintN argc, jsval* argv, jsval* rval)
276276

277277
if(!PyCallable_Check(pyobj))
278278
{
279-
JS_ReportError(jscx, "Object is not callable.");
279+
JS_ReportError(jscx, "Object not callable, unable to apply");
280280
goto error;
281281
}
282282

@@ -339,7 +339,7 @@ js_ctor(JSContext* jscx, JSObject* jsobj, uintN argc, jsval* argv, jsval* rval)
339339

340340
if(!PyCallable_Check(pyobj))
341341
{
342-
JS_ReportError(jscx, "Object is not callable.");
342+
JS_ReportError(jscx, "Object not callable, unable to construct");
343343
goto error;
344344
}
345345

0 commit comments

Comments
 (0)