Skip to content

Commit

Permalink
🐛 Include exception message in mapping error description for better c…
Browse files Browse the repository at this point in the history
…larity
  • Loading branch information
Dogukan Cavdaroglu committed Oct 22, 2024
1 parent 4295ca9 commit 314f87d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class FhirRepositoryWriter(sinkSettings: FhirRepositorySinkSettings) extends Bas
.map(mr =>
mr.copy(error = Some(FhirMappingError( //Set the error
code = FhirMappingErrorCodes.SERVICE_PROBLEM,
description = msg
description = msg + Option(fce.getMessage).filter(_.nonEmpty).map(" " + _).getOrElse("")
)))
).foreach(failedResult => problemsAccumulator.add(failedResult))
None
Expand Down

0 comments on commit 314f87d

Please sign in to comment.