aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/ldc.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/ldc.js')
-rw-r--r--lib/compilers/ldc.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/compilers/ldc.js b/lib/compilers/ldc.js
index 1c050fa23..1dc4039f4 100644
--- a/lib/compilers/ldc.js
+++ b/lib/compilers/ldc.js
@@ -73,6 +73,9 @@ class LDCCompiler extends BaseCompiler {
}
loadASTOutput(output) {
+ if (output.code !== 0) {
+ return `Error generating AST: ${output.code}`;
+ }
// Load the AST output from the `.cg` file.
// Demangling is not needed.
const astFilename = output.inputFilename.concat(".cg");