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)
259
259
html . push ( h ( str_options ) ) ;
260
260
html . push ( "</td>\n" ) ;
261
261
html . push ( "\t</tr>\n" ) ;
262
- html . push ( "</table>\n" ) ;
263
262
264
263
var compileTest = null ;
265
264
@@ -269,13 +268,18 @@ function serveTest(query, response)
269
268
}
270
269
catch ( err )
271
270
{
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>' ) ;
273
274
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 ( "" ) } ) ) ;
276
279
response . end ( ) ;
277
280
return ;
278
281
}
282
+ html . push ( "</table>\n" ) ;
279
283
280
284
html . push ( '<table class=\"table table-bordered table-striped\">\n' ) ;
281
285
You can’t perform that action at this time.
0 commit comments