Commit e54949b3 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Fix error reporting when gatherImports failed

parent b0b6217d
...@@ -30,7 +30,8 @@ function Compiler (editor, queryParams, handleGithubCall, updateFiles) { ...@@ -30,7 +30,8 @@ function Compiler (editor, queryParams, handleGithubCall, updateFiles) {
files[utils.fileNameFromKey(editor.getCacheFile())] = input; files[utils.fileNameFromKey(editor.getCacheFile())] = input;
gatherImports(files, missingInputs, function (input, error) { gatherImports(files, missingInputs, function (input, error) {
if (input === null) { if (input === null) {
self.event.trigger('compilationFinished', [false, [error], files]); self.lastCompilationResult = null;
self.event.trigger('compilationFinished', [false, { 'error': error }, files]);
} else { } else {
var optimize = queryParams.get().optimize; var optimize = queryParams.get().optimize;
compileJSON(input, optimize ? 1 : 0); compileJSON(input, optimize ? 1 : 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment