Permalink
Browse files

Differentiate error for applying and constructing

  • Loading branch information...
lericson committed Oct 5, 2010
1 parent a9be1e7 commit 5f90f233901636b80176def4c17c85faf6495ad3
Showing with 2 additions and 2 deletions.
  1. +2 −2 spidermonkey/pyobject.c
@@ -276,7 +276,7 @@ js_call(JSContext* jscx, JSObject* jsobj, uintN argc, jsval* argv, jsval* rval)

if(!PyCallable_Check(pyobj))
{
JS_ReportError(jscx, "Object is not callable.");
JS_ReportError(jscx, "Object not callable, unable to apply");
goto error;
}

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

if(!PyCallable_Check(pyobj))
{
JS_ReportError(jscx, "Object is not callable.");
JS_ReportError(jscx, "Object not callable, unable to construct");
goto error;
}

0 comments on commit 5f90f23

Please sign in to comment.