Skip to content

Commit d9b9bc4

Browse files
committed
Making error messages prettier
1 parent 555ce64 commit d9b9bc4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qiita_pet/handlers/study_handlers/description_handlers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,9 @@ def display_template(self, study, user, msg, msg_level, full_access,
635635
# modify the information of the study
636636
show_edit_btn = study_status != 'public' or user_level == 'admin'
637637

638+
# Make the error message suitable for html
639+
msg = msg.replace('\n', "<br/>")
640+
638641
self.render('study_description.html',
639642
message=msg,
640643
level=msg_level,

0 commit comments

Comments
 (0)