Commit bee01c91 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Raise of an error at wrong JSON format

parent e7ee0c7d
......@@ -30,8 +30,7 @@ class Config(var map: Map[String,Any]) extends Logging {
var configJson = JSON.parseFull(scala.io.Source.fromFile(configFile).mkString)
if ( configJson == None ) {
println( "[ERROR] The config JSON file is either not properly formatted or not a JSON file" )
System.exit(1)
throw new IllegalStateException("The config JSON file is either not properly formatted or not a JSON file, file: " + configFile)
}
this.logger.debug("Jsonfile: " + configFile)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment