Skip to content

Commit c545adc

Browse files
committed
Manually merge PR178 to handle a corner case with exceptions in output
rendering. Credits to Alex Burke (albu-diku) for identifying and fixing it. git-svn-id: svn+ssh://svn.code.sf.net/p/migrid/code/trunk@6199 b75ad72c-e7d7-11dd-a971-7dbc132099af
1 parent 78afd62 commit c545adc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mig/shared/output.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,10 +2832,11 @@ def format_output(
28322832

28332833
# hide previous output
28342834

2835-
out_obj = []
2836-
out_obj.extend([{'object_type': 'error_text', 'text':
2837-
'Validation error! %s' % val_msg},
2838-
{'object_type': 'title', 'text': 'Validation error!'}])
2835+
out_obj = [
2836+
{'object_type': 'start'},
2837+
{'object_type': 'title', 'text': 'Validation error!'},
2838+
{'object_type': 'error_text', 'text': 'Validation error! %s' % val_msg},
2839+
]
28392840

28402841
start = None
28412842
title = None

0 commit comments

Comments
 (0)