INNER CODE UNIT · JavaScript

outputError

Megabyteceer/thing-editor · thing-editor/electron-main/build-sounds.js:25

	function outputError(err, outError, out) {
		if (!result.errors) {
			result.errors = [];
		}
		result.errors.push({err, out, outError});
		console.error(err);
	}

	let cache;
	let cacheFn = path.join(soundsPath, '~snd-convert-cache.json');
	if (fs.existsSync(cacheFn)) {
		cache = JSON.parse(fs.readFileSync(cacheFn));
		if (cache?.fileName !== cacheFn) {
			cache = undefined;
		}
	}
	if (!cache) {
		cache = {fileName: cacheFn};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…