Skip to content

Commit 7b64cd0

Browse files
committed
tweaked error message response
1 parent 9c0a9d4 commit 7b64cd0

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

app.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ function serveTest(query, response)
239239
html.push(h(str_options));
240240
html.push("</td>\n");
241241
html.push("\t</tr>\n");
242-
html.push("</table>\n");
243242

244243
var compileTest = null;
245244

@@ -249,13 +248,18 @@ function serveTest(query, response)
249248
}
250249
catch (err)
251250
{
252-
html.push('<div class="alert alert-error">Error: ');
251+
html.push('\t<tr>\n');
252+
html.push('\t\t<td>Error:</td>\n');
253+
html.push('\t\t<td>');
253254
html.push(h(err.message));
254-
html.push("</div>");
255-
response.write(JSON.stringify({"success": true, "message": "unable to create RegExp object", "html": html.join("")}));
255+
html.push('</td>\n');
256+
html.push('\t</tr>\n');
257+
html.push('</table>\n');
258+
response.write(JSON.stringify({"success": false, "message": "unable to create RegExp object", "html": html.join("")}));
256259
response.end();
257260
return;
258261
}
262+
html.push("</table>\n");
259263

260264
html.push('<table class=\"table table-bordered table-striped\">\n');
261265

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# deploy the js backend to CloudFoundry
44
#
55
# NOTE: you may have to "vmc login" first
6-
vmc update
6+
vmc push

0 commit comments

Comments
 (0)