Commit 8785eb4d authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Improve error reporting on mapping errors.

parent c6657296
......@@ -79,8 +79,11 @@ class MappingConfig(directory: String) {
else -> log.error("Top level definition of the mapping definition must be a map.")
}
}
} catch (ex: InvalidMappingException) {
log.error("Invalid Mapping: " + ex.message)
exitProcess(1)
} catch (ex: ClassCastException) {
log.error(ex.message)
log.error("Invalid Structure: " + ex.message)
exitProcess(1)
}
if (uriField == "") {
......
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