mirror of https://github.com/Icinga/icinga2.git
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";
|
std::cout << ConsoleColorTag(Console_Normal) << "\n";
|
||||||
}
|
}
|
||||||
} catch (const ConfigError& ex) {
|
} 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";
|
std::cout << ex.what() << "\n";
|
||||||
} catch (const std::exception& ex) {
|
} catch (const std::exception& ex) {
|
||||||
std::cout << "Error: " << DiagnosticInformation(ex) << "\n";
|
std::cout << "Error: " << DiagnosticInformation(ex) << "\n";
|
||||||
|
|
Loading…
Reference in New Issue