Skip to content

Commit

Permalink
Merge pull request #181 from FirelyTeam/fix/issue-80
Browse files Browse the repository at this point in the history
fix: Render OperationOutcome on faults
  • Loading branch information
kennethmyhra authored Nov 6, 2019
2 parents ffa0ade + 859f21a commit 06e52db
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Spark.Engine/Formatters/HtmlFhirFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,7 @@ private void WriteHTMLOutput(Type type, object value, Stream writeStream)
writer.WriteLine(" <link rel=\"icon\" href=\"/Content/css/fhir-html.css\"></link>");
writer.WriteLine("</head>");
writer.WriteLine("<body>");
if (type == typeof(OperationOutcome))
{
OperationOutcome oo = (OperationOutcome)value;

if (oo.Text != null)
writer.Write(oo.Text.Div);
}
else if (type == typeof(Resource))
if (type == typeof(Resource) || type == typeof(OperationOutcome))
{
if (value is Bundle)
{
Expand Down

0 comments on commit 06e52db

Please sign in to comment.