Skip to content
Snippets Groups Projects
Commit 085911d8 authored by Régis Blanc's avatar Régis Blanc
Browse files

if error in the reporter, exit with with error code instead of throwing exception

parent 9446319d
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,10 @@ class AnalysisComponent(val global: Global, val pluginInstance: LeonPlugin)
protected def stopIfErrors: Unit = {
if(reporter.hasErrors) {
throw new Exception("There were errors.")
if(Settings.simpleOutput)
println("error")
sys.exit(1)
//throw new Exception("There were errors.")
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment