From: Jack Jansen Date: Tue, 6 Nov 2001 15:57:26 +0000 (+0000) Subject: Added an error message when using FSRef objects on platforms that don't X-Git-Tag: v2.2.1c1~844 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bf52daedd38e4491bf1df2787b38708f0bdd3f0;p=python Added an error message when using FSRef objects on platforms that don't support them. --- diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c index 61127aa89b..9b635e36e4 100644 --- a/Mac/Modules/macfsmodule.c +++ b/Mac/Modules/macfsmodule.c @@ -1131,6 +1131,7 @@ int PyMac_GetFSRef(PyObject *v, FSRef *fsr) { #if TARGET_API_MAC_OS8 + PyErr_SetString(PyExc_TypeError, "FSRef objects not supported on this platform"); return 0; #else /* If it's an FSRef we're also okay. */