Fix hints to work again.

This commit is contained in:
Franz Liedke
2015-04-23 13:15:31 +02:00
parent 64114815c7
commit 9063b18012

View File

@ -77,8 +77,8 @@ class SubmissionsController < ApplicationController
server_sent_event.write({status: output[:status]}, event: 'status')
if stderr.present?
if hint = Whistleblower.new(execution_environment: @submission.execution_environment).generate_hint(stderr)
unless output[:stderr].nil?
if hint = Whistleblower.new(execution_environment: @submission.execution_environment).generate_hint(output[:stderr])
server_sent_event.write(hint, event: 'hint')
else
store_error(stderr)