Display hints in editor frontend

This commit is contained in:
Maximilian Grundke
2018-03-08 16:20:07 +01:00
parent a228541dd3
commit ccdcc43431
7 changed files with 58 additions and 4 deletions

View File

@ -198,7 +198,7 @@ class SubmissionsController < ApplicationController
def kill_socket(tubesock)
# search for errors and save them as StructuredError (for scoring runs see submission_scoring.rb)
extract_errors.each do | error |
tubesock.send_data JSON.dump({cmd: 'hint', hint: error.hint})
tubesock.send_data JSON.dump({cmd: 'hint', hint: error.hint, description: error.error_template.description})
end
# save the output of this "run" as a "testrun" (scoring runs are saved in submission_scoring.rb)