Commit eb0c52fa authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Update some fatal messages to have more context what the exception was about.

parent 60aeaafa
Pipeline #30521 passed with stages
in 3 minutes and 51 seconds
......@@ -124,7 +124,7 @@ class KafkaTopology(private val settings: SettingsLoader) {
null, Report(
key,
ReportStatus.fatal,
ex.localizedMessage,
"XSLT EXCEPTION: ${ex.localizedMessage}",
step
)
)
......@@ -136,7 +136,7 @@ class KafkaTopology(private val settings: SettingsLoader) {
null, Report(
key,
ReportStatus.fatal,
ex.localizedMessage,
"Missing Identifier: ${ex.localizedMessage}",
step
)
)
......@@ -148,7 +148,7 @@ class KafkaTopology(private val settings: SettingsLoader) {
null, Report(
key,
ReportStatus.fatal,
ex.localizedMessage,
"SAXON API EXCEPTION: ${ex.localizedMessage}",
step
)
)
......
......@@ -201,7 +201,7 @@ class SAXContentHandler(
report = Report(
id = identifier ?: key,
status = if (reportText.isEmpty()) ReportStatus.success else ReportStatus.fatal,
message = if (reportText.isEmpty()) "Successfully transformed xml to json!" else reportText.trim(),
message = if (reportText.isEmpty()) "Successfully transformed xml to json!" else "TRANSFORMATION ISSUE: ${reportText.trim()}",
step = step
)
}
......
Markdown is supported
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