diff --git a/app/models/task.rb b/app/models/task.rb index d40ff2933..f174a426a 100644 --- a/app/models/task.rb +++ b/app/models/task.rb @@ -1149,7 +1149,7 @@ def convert_submission_to_pdf(source_folder: FileHelper.student_work_dir(:new), rescue => e clear_in_process trigger_transition trigger: 'fix', by_user: project.tutor_for(task_definition) - add_text_comment project.tutor_for(task_definition), "**Automated Comment**: Something went wrong with your submission. Check the files and resubmit this task. #{e.message.to_s}" + add_text_comment project.tutor_for(task_definition), "**Automated Comment**: Something went wrong with your submission. Check the files and resubmit this task. #{e.message}" raise e end end