MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / PrintError

Function PrintError

general.cpp:1456–1476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1454// but isn't a fatal error in that can still fall back to the -Q loop.
1455
1456void PrintError(CONST char *sz)
1457{
1458#ifndef WIN
1459 AnsiColor(kRedA);
1460 fprintf(stderr, "%s: %s\n", szAppName, sz);
1461 AnsiColor(kDefault);
1462 Terminate(tcError);
1463#else
1464 char szT[cchSzDef];
1465
1466 if (wi.fNoPopup)
1467 return;
1468 if (gs.nAnim > 0) {
1469 // Turn off animation to avoid continual error messages.
1470 neg(gs.nAnim);
1471 WiCheckMenu(cmdAnimateNo, fFalse);
1472 }
1473 sprintf(szT, "%s Error", szAppName);
1474 MessageBox(wi.hwndMain, sz, szT, MB_ICONEXCLAMATION);
1475#endif
1476}
1477
1478
1479// Print error message for missing parameters to a command switch.

Callers 15

ActionFunction · 0.85
NProcessSwitchesRareFunction · 0.85
FEvalFunctionFunction · 0.85
FCreateTriesFunction · 0.85
DrawTurtleFunction · 0.85
FileOpenFunction · 0.85
FOutputDataFunction · 0.85
FOutputAAFFileFunction · 0.85
FOutputQuickFileFunction · 0.85
FOutputCalendarFileFunction · 0.85
FOutputChartListFunction · 0.85
FOutputDaedalusStarFunction · 0.85

Calls 2

AnsiColorFunction · 0.85
TerminateFunction · 0.85

Tested by

no test coverage detected