chore: provide a helpful error when the base build is incorrect

closes #468
This commit is contained in:
calebboyd
2018-03-24 12:55:37 -05:00
committed by Caleb Boyd
parent f4d3ce954a
commit 54212cbc52
+4
View File
@@ -275,6 +275,10 @@ if (typeof fs.exists === 'function') {
Object.assign(fs, nfs)
const patches = (process as any).nexe.patches
if (!patches) {
throw new Error('Your cached build is out of date!\nUse --clean to get a new build.\n')
}
delete (process as any).nexe
patches.internalModuleReadFile = function(this: any, original: any, ...args: any[]) {