if (!cache.ideServer && number === 9) {
debug(error)
- console.log(
- 'failed to connect to or start psc-ide-server, ' +
- 'full compilation will occur on rebuild'
- )
+ console.warn('Failed to connect to or start psc-ide-server. A full compilation will occur on rebuild');
return Promise.resolve(psModule)
}
}
if (res && !Array.isArray(res.result)) {
- return res.resultType === 'success'
- ? resolve(psModule)
- : reject(new Error('psc-ide rebuild failed'))
+ return resolve(psModule);
}
Promise.map(res.result, (item, i) => {
}))
.then(() => request({ command: 'load' }))
.then(resolve)
- .catch(() => reject(new Error('psc-ide rebuild failed')))
+ .catch(() => resolve(psModule))
}
cache.errors = compileMessages.join('\n')
- reject(new Error('psc-ide rebuild failed'))
+ resolve(psModule);
} else {
cache.warnings = compileMessages.join('\n')
resolve(psModule)