MCPcopy Create free account
hub / github.com/duckdb/duckdb / PrintDatabaseError

Method PrintDatabaseError

tools/shell/shell.cpp:1486–1496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1484}
1485
1486void 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

Callers 2

SetColorMethod · 0.80
RunShellFunction · 0.80

Calls 2

c_strMethod · 0.80
PrintErrorMethod · 0.80

Tested by

no test coverage detected