File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,6 @@ function serveTest(query, response)
259259 html . push ( h ( str_options ) ) ;
260260 html . push ( "</td>\n" ) ;
261261 html . push ( "\t</tr>\n" ) ;
262- html . push ( "</table>\n" ) ;
263262
264263 var compileTest = null ;
265264
@@ -269,13 +268,18 @@ function serveTest(query, response)
269268 }
270269 catch ( err )
271270 {
272- html . push ( '<div class="alert alert-error">Error: ' ) ;
271+ html . push ( '\t<tr>\n' ) ;
272+ html . push ( '\t\t<td>Error:</td>\n' ) ;
273+ html . push ( '\t\t<td>' ) ;
273274 html . push ( h ( err . message ) ) ;
274- html . push ( "</div>" ) ;
275- response . write ( JSON . stringify ( { "success" : true , "message" : "unable to create XRegExp object" , "html" : html . join ( "" ) } ) ) ;
275+ html . push ( '</td>\n' ) ;
276+ html . push ( '\t</tr>\n' ) ;
277+ html . push ( '</table>\n' ) ;
278+ response . write ( JSON . stringify ( { "success" : false , "message" : "unable to create XRegExp object" , "html" : html . join ( "" ) } ) ) ;
276279 response . end ( ) ;
277280 return ;
278281 }
282+ html . push ( "</table>\n" ) ;
279283
280284 html . push ( '<table class=\"table table-bordered table-striped\">\n' ) ;
281285
You can’t perform that action at this time.
0 commit comments