summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macglue.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-08-07 14:36:06 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-08-07 14:36:06 (GMT)
commitcf6369394e5f4bb3d0b6f5b9a76d4fa3c121bf1c (patch)
treeed15a6dd36630adf7b537eff14b639f0262f4890 /Mac/Python/macglue.c
parenta7b6a820aeba56cee44b6b787e02816426316586 (diff)
downloadcpython-cf6369394e5f4bb3d0b6f5b9a76d4fa3c121bf1c.zip
cpython-cf6369394e5f4bb3d0b6f5b9a76d4fa3c121bf1c.tar.gz
cpython-cf6369394e5f4bb3d0b6f5b9a76d4fa3c121bf1c.tar.bz2
Better error messages wrt missing resources and preferences
Diffstat (limited to 'Mac/Python/macglue.c')
-rw-r--r--Mac/Python/macglue.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c
index 7e4f0a0..6da7ca3 100644
--- a/Mac/Python/macglue.c
+++ b/Mac/Python/macglue.c
@@ -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);
}