Skip to content

Commit

Permalink
Show validation details on console if TestScript is not valid (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhlee-mitre committed Jul 7, 2022
1 parent 65333f0 commit 989ecc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/TestScriptEngine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def load_scripts
FHIR.logger.info "[.load_scripts] TestScript with id [#{script.id}] loaded."
else
FHIR.logger.info "[.load_scripts] Invalid or non-TestScript detected. Skipping resource at #{resource}."
FHIR.logger.info "[.load_scripts] Violation: #{script.validate.to_hash}"
end
rescue
FHIR.logger.info "[.load_scripts] Unable to deserialize TestScript resource at #{resource}."
Expand Down

0 comments on commit 989ecc7

Please sign in to comment.