Cleaning up helpers around errors

This commit is contained in:
nishant-sachdeva
2022-09-19 10:51:14 +05:30
parent 1fbee8259a
commit c8011d8719
21 changed files with 271 additions and 231 deletions
+2 -2
View File
@@ -765,7 +765,7 @@ void CommandLineInterface::compile()
catch (CompilerError const& _exception)
{
m_hasOutput = true;
formatter.printExceptionInformation(_exception, "Compiler error");
formatter.printExceptionInformation(_exception, Error::Type::CompilerError);
solThrow(CommandLineExecutionError, "");
}
catch (Error const& _error)
@@ -778,7 +778,7 @@ void CommandLineInterface::compile()
else
{
m_hasOutput = true;
formatter.printExceptionInformation(_error, _error.typeName());
formatter.printExceptionInformation(_error, _error.type());
solThrow(CommandLineExecutionError, "");
}
}