Explorar el Código

fix file name

Gildas hace 3 años
padre
commit
27f2abb18f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      companion/singlefile_companion.js

+ 1 - 1
companion/singlefile_companion.js

@@ -78,7 +78,7 @@ async function externalSave(message) {
 	} catch (error) {
 		if (companionOptions.errorFile) {
 			const message = "URL: " + message.url + "\nStack: " + error.stack + "\n";
-			fs.writeFileSync(message.errorFile, message, { flag: "a" });
+			fs.writeFileSync(companionOptions.errorFile, message, { flag: "a" });
 		}
 		throw error;
 	} finally {