Browse Source

Error handling tweaks

dev/git-series/gccdum
Matt Godbolt 6 years ago
parent
commit
bafc482f9c
  1. 4
      .idea/deployment.xml
  2. 2
      lib/compile-handler.js

4
.idea/deployment.xml

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PublishConfigData" serverName="GCC explorer" />
</project>
<component name="PublishConfigData" serverName="Compiler Explorer" />
</project>

2
lib/compile-handler.js

@ -165,7 +165,7 @@ function CompileHandler(gccProps, compilerProps) {
function (error) {
logger.error("Error: " + error.stack || error);
if (typeof(error) !== "string") {
error = "Internal GCC explorer error: " + error.toString();
error = "Internal Compiler Explorer error: " + error.stack || error;
}
res.end(JSON.stringify({code: -1, stderr: [{text: error}]}));
}

Loading…
Cancel
Save