diff options
Diffstat (limited to 'Mac/Modules/drag/dragsupport.py')
-rw-r--r-- | Mac/Modules/drag/dragsupport.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Mac/Modules/drag/dragsupport.py b/Mac/Modules/drag/dragsupport.py index 9e25328..64274a6 100644 --- a/Mac/Modules/drag/dragsupport.py +++ b/Mac/Modules/drag/dragsupport.py @@ -89,8 +89,10 @@ dragglue_TrackingHandler(DragTrackingMessage theMessage, WindowPtr theWindow, return -1; rv = PyEval_CallObject((PyObject *)handlerRefCon, args); Py_DECREF(args); - if ( rv == NULL ) + if ( rv == NULL ) { + fprintf(stderr, "Drag: Exception in TrackingHandler\\n"); return -1; + } i = -1; if ( rv == Py_None ) i = 0; @@ -112,8 +114,10 @@ dragglue_ReceiveHandler(WindowPtr theWindow, void *handlerRefCon, return -1; rv = PyEval_CallObject((PyObject *)handlerRefCon, args); Py_DECREF(args); - if ( rv == NULL ) + if ( rv == NULL ) { + fprintf(stderr, "Drag: Exception in ReceiveHandler\\n"); return -1; + } i = -1; if ( rv == Py_None ) i = 0; @@ -138,8 +142,10 @@ dragglue_SendData(FlavorType theType, void *dragSendRefCon, return -1; rv = PyEval_CallObject(self->sendproc, args); Py_DECREF(args); - if ( rv == NULL ) + if ( rv == NULL ) { + fprintf(stderr, "Drag: Exception in SendDataHandler\\n"); return -1; + } i = -1; if ( rv == Py_None ) i = 0; |