chore: provide a helpful error when the base build is incorrect
closes #468
This commit is contained in:
@@ -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[]) {
|
||||
|
||||
Reference in New Issue
Block a user