Send hints when scoring

This commit is contained in:
Maximilian Grundke
2018-03-13 14:52:40 +01:00
parent ccdcc43431
commit 841a885711
3 changed files with 14 additions and 4 deletions

View File

@ -13,7 +13,7 @@ module SubmissionScoring
submission.exercise.execution_environment.error_templates.each do |template|
pattern = Regexp.new(template.signature).freeze
if pattern.match(testrun_output)
StructuredError.create_from_template(template, testrun_output)
StructuredError.create_from_template(template, testrun_output, submission)
end
end
end