forked from mirror/MCSM-Daemon
commit
7eb6664c07
@ -59,7 +59,7 @@ export class ProcessConfig {
|
||||
if (this.iProcessConfig.type === "txt") {
|
||||
text = object.toString();
|
||||
}
|
||||
if (!text) throw new Error($t("process_config.writEmpty"));
|
||||
if (!text && this.iProcessConfig.type !== "txt") throw new Error($t("process_config.writEmpty"));
|
||||
fs.writeFileSync(this.iProcessConfig.path, text, { encoding: CONFIG_FILE_ENCODE });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user