]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Better error messages wrt missing resources and preferences
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 7 Aug 1995 14:36:06 +0000 (14:36 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 7 Aug 1995 14:36:06 +0000 (14:36 +0000)
Mac/Python/macglue.c

index 7e4f0a0a090d660ecb670ce3600023211deb5ba8..6da7ca31c0a2a5df8e94618600163ddcc9be8099 100644 (file)
@@ -488,7 +488,7 @@ PyMac_GetPythonDir()
                UpdateAlias(NULL, &dirspec, handle, &modified);
            }
 #else
-               printf("Error: no Preferences file. Attempting to limp on...\n");
+               printf("Error: corrupted Preferences file. Attempting to limp on...\n");
                name[0] = 0;
                getwd(name);
                return name;
@@ -1022,8 +1022,10 @@ PyMac_InteractiveOptions(int *inspect, int *verbose, int *suppress_print,
                return;
 
        dialog = GetNewDialog(OPT_DIALOG, NULL, (WindowPtr)-1);
-       if ( dialog == NULL )
+       if ( dialog == NULL ) {
+               printf("Option dialog not found - cannot set options\n");
                return;
+       }
        while (1) {
                handle = NULL;
                ModalDialog(NULL, &item);
@@ -1049,5 +1051,4 @@ PyMac_InteractiveOptions(int *inspect, int *verbose, int *suppress_print,
 #undef OPT_ITEM
        }
        DisposDialog(dialog);
-       /*DBG*/printf("options: %d %d %d %d %d %d\n", *inspect, *verbose, *suppress_print, *unbuffered, *debugging);
 }