mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-07 20:25:08 +02:00
parent
e398b7eccf
commit
b61f803d60
@ -92,6 +92,14 @@ int ReplCommand::Run(const po::variables_map& vm, const std::vector<std::string>
|
||||
std::cout << ConsoleColorTag(Console_Normal) << "\n";
|
||||
}
|
||||
} catch (const ConfigError& ex) {
|
||||
const DebugInfo *di = boost::get_error_info<errinfo_debuginfo>(ex);
|
||||
|
||||
if (di) {
|
||||
std::cout << String(3 + di->FirstColumn, ' ');
|
||||
std::cout << String(di->LastColumn - di->FirstColumn + 1, '^');
|
||||
std::cout << "\n";
|
||||
}
|
||||
|
||||
std::cout << ex.what() << "\n";
|
||||
} catch (const std::exception& ex) {
|
||||
std::cout << "Error: " << DiagnosticInformation(ex) << "\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user