Skip to content

Commit

Permalink
Merge pull request #195 from autolab/fix_official+unofficial_submit
Browse files Browse the repository at this point in the history
Fixed the wrong variables in error messages
  • Loading branch information
Daniel Bucci committed Jan 27, 2015
2 parents c546f84 + 8c85a8e commit 12852d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/assessments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1181,12 +1181,12 @@ def log_submit
end

if !@user then
err = "ERROR: invalid username (#{user}) for class #{course.id}"
err = "ERROR: invalid username (#{params[:user]}) for class #{@course.id}"
render plain: err, status: :bad_request and return
end

if !@assessment then
err = "ERROR: Invalid Assessment (#{assessment}) for course #{course.id}"
err = "ERROR: Invalid Assessment (#{params[:id]}) for course #{@course.id}"
render plain: err, status: :bad_request and return
end

Expand Down

0 comments on commit 12852d7

Please sign in to comment.