Commit 723c231e authored by Matthias's avatar Matthias
Browse files

update usage of latest service-utilities

parent 4430309b
Pipeline #24784 passed with stages
in 3 minutes and 45 seconds
......@@ -62,7 +62,8 @@ class FileValidation {
Report(
id = file.name,
status = ReportStatus.failure,
message = ReportMessages.formatError(file.path, format, ex.localizedMessage)
message = ReportMessages.formatError(file.path, format, ex.localizedMessage),
step = Service.step
)
)
}
......@@ -71,7 +72,8 @@ class FileValidation {
Report(
id = file.name,
status = ReportStatus.success,
message = ReportMessages.validatedFile(file.path, format)
message = ReportMessages.validatedFile(file.path, format),
step = Service.step
)
)
}
......@@ -86,7 +88,8 @@ class FileValidation {
Report(
id = file.name,
status = ReportStatus.failure,
message = ReportMessages.formatError(file.path, format, ex.localizedMessage)
message = ReportMessages.formatError(file.path, format, ex.localizedMessage),
step = Service.step
)
)
}
......@@ -95,7 +98,8 @@ class FileValidation {
Report(
id = file.name,
status = ReportStatus.success,
message = ReportMessages.validatedFile(file.path, format)
message = ReportMessages.validatedFile(file.path, format),
step = Service.step
)
)
}
......@@ -110,7 +114,8 @@ class FileValidation {
Message(format, file.path), Report(
id = file.name,
status = ReportStatus.success,
message = ReportMessages.validatedFile(file.path, format)
message = ReportMessages.validatedFile(file.path, format),
step = Service.step
)
)
} catch (ex: SAXException) {
......@@ -119,7 +124,8 @@ class FileValidation {
Report(
id = file.name,
status = ReportStatus.failure,
message = ReportMessages.formatError(file.path, format, ex.localizedMessage)
message = ReportMessages.formatError(file.path, format, ex.localizedMessage),
step = Service.step
)
)
} catch (ex: IOException) {
......@@ -128,7 +134,8 @@ class FileValidation {
Report(
id = file.name,
status = ReportStatus.failure,
message = ReportMessages.formatError(file.path, format, ex.localizedMessage)
message = ReportMessages.formatError(file.path, format, ex.localizedMessage),
step = Service.step
)
)
}
......@@ -139,7 +146,8 @@ class FileValidation {
Report(
id = file.name,
status = ReportStatus.failure,
message = ReportMessages.invalidFileExtension(file.name)
message = ReportMessages.invalidFileExtension(file.name),
step = Service.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