fhir-crucible / testscript-engine

Ruby FHIR TestScript execution engine
Apache License 2.0
5 stars 2 forks source link

Add Error Method to TestReportHandler Class #30

Closed ms-k1ngk0ng closed 2 years ago

ms-k1ngk0ng commented 2 years ago

Quick fix to add the error method, as 'error' is a valid result for any TestReport action.

ms-k1ngk0ng commented 2 years ago

The method looks good. I suppose when ERROR occurs in TestScriptRunnable it triggers the error method?

message = "[.execute_operation] ERROR: #{e.message} while executing Operation #{op.label || '[unlabeled]'}."
FHIR.logger.info message
fail(message)  -----> error(message)

@jhlee-mitre yep! Going to have to go through and manually change the calls, but will work fine.