Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
@@ -33,13 +33,13 @@ app.post("/compile", (req, res) => {
|
|
33 |
(error, stdout, stderr) => {
|
34 |
if (error) {
|
35 |
console.error(error);
|
36 |
-
|
37 |
return;
|
38 |
}
|
39 |
|
40 |
console.log(stdout);
|
41 |
console.error(stderr);
|
42 |
-
res.send(stdout);
|
43 |
}
|
44 |
);
|
45 |
|
|
|
33 |
(error, stdout, stderr) => {
|
34 |
if (error) {
|
35 |
console.error(error);
|
36 |
+
res.send({error:error});
|
37 |
return;
|
38 |
}
|
39 |
|
40 |
console.log(stdout);
|
41 |
console.error(stderr);
|
42 |
+
res.send({output:stdout});
|
43 |
}
|
44 |
);
|
45 |
|