From f23665b22bf96eabdfbfc95f20348c9475e85ecd Mon Sep 17 00:00:00 2001 From: Alex Mingoia Date: Tue, 10 May 2016 22:04:44 -0700 Subject: Recompile on when psc-client-ide receives UnknownModule. --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 0a25ccd..17951d3 100644 --- a/src/index.js +++ b/src/index.js @@ -222,7 +222,7 @@ function rebuild(psModule) { if (!Array.isArray(res.result)) { return res.resultType === 'success' ? resolve(psModule) - : reject(res.result) + : reject(res) } Promise.map(res.result, (item, i) => { @@ -232,7 +232,7 @@ function rebuild(psModule) { .then(compileMessages => { if (res.resultType === 'error') { cache.errors = compileMessages - reject(res.result) + reject(res) } else { cache.warnings = compileMessages resolve(psModule) -- cgit v1.2.3