mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Better error messages wrt missing resources and preferences
This commit is contained in:
parent
a7b6a820ae
commit
cf6369394e
1 changed files with 4 additions and 3 deletions
|
|
@ -488,7 +488,7 @@ PyMac_GetPythonDir()
|
||||||
UpdateAlias(NULL, &dirspec, handle, &modified);
|
UpdateAlias(NULL, &dirspec, handle, &modified);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
printf("Error: no Preferences file. Attempting to limp on...\n");
|
printf("Error: corrupted Preferences file. Attempting to limp on...\n");
|
||||||
name[0] = 0;
|
name[0] = 0;
|
||||||
getwd(name);
|
getwd(name);
|
||||||
return name;
|
return name;
|
||||||
|
|
@ -1022,8 +1022,10 @@ PyMac_InteractiveOptions(int *inspect, int *verbose, int *suppress_print,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
dialog = GetNewDialog(OPT_DIALOG, NULL, (WindowPtr)-1);
|
dialog = GetNewDialog(OPT_DIALOG, NULL, (WindowPtr)-1);
|
||||||
if ( dialog == NULL )
|
if ( dialog == NULL ) {
|
||||||
|
printf("Option dialog not found - cannot set options\n");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
while (1) {
|
while (1) {
|
||||||
handle = NULL;
|
handle = NULL;
|
||||||
ModalDialog(NULL, &item);
|
ModalDialog(NULL, &item);
|
||||||
|
|
@ -1049,5 +1051,4 @@ PyMac_InteractiveOptions(int *inspect, int *verbose, int *suppress_print,
|
||||||
#undef OPT_ITEM
|
#undef OPT_ITEM
|
||||||
}
|
}
|
||||||
DisposDialog(dialog);
|
DisposDialog(dialog);
|
||||||
/*DBG*/printf("options: %d %d %d %d %d %d\n", *inspect, *verbose, *suppress_print, *unbuffered, *debugging);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue