# HG changeset patch # User Jittat Fakcharoenphol # Date 2019-08-31 20:36:54 # Node ID 72eb3ebb9aef90504de77c687918f87b1b919247 # Parent 15215b7e24231240541b8ecfd5ede367dc8aaf92 fixed new submission error showing nil compiler message diff --git a/app/views/submissions/edit.html.haml b/app/views/submissions/edit.html.haml --- a/app/views/submissions/edit.html.haml +++ b/app/views/submissions/edit.html.haml @@ -59,7 +59,9 @@ %span{aria: {hidden: 'true'}, data: {dismiss: 'modal'}} × %h4 Compiler message .modal-body - %pre#compiler_msg= @submission.compiler_message + %pre#compiler_msg + - if @submission + = @submission.compiler_message .modal-footer %button.btn.btn-default{type: 'button', data: {dismiss: 'modal'}} Close