| 1484 | } |
| 1485 | |
| 1486 | void ShellState::PrintDatabaseError(const string &zErr) { |
| 1487 | if (!HighlightErrors()) { |
| 1488 | PrintF(PrintOutput::STDERR, "%s\n", zErr.c_str()); |
| 1489 | return; |
| 1490 | } |
| 1491 | // detect dark-light mode if we haven't yet |
| 1492 | DetectDarkLightMode(); |
| 1493 | // print the error |
| 1494 | ShellHighlight shell_highlight(*this); |
| 1495 | shell_highlight.PrintError(zErr); |
| 1496 | } |
| 1497 | |
| 1498 | /* |
| 1499 | ** Compare the string as a command-line option with either one or two |
no test coverage detected