fix the error while throwing a error (#461)
This commit is contained in:
parent
845f5d514b
commit
73e5d8b267
|
@ -78,7 +78,7 @@ export default class AddonManager {
|
|||
}
|
||||
|
||||
watchAddons() {
|
||||
if (this.watcher) return Logger.error(this.name, `Already watching ${this.prefix} addons.`);
|
||||
if (this.watcher) return Logger.err(this.name, `Already watching ${this.prefix} addons.`);
|
||||
Logger.log(this.name, `Starting to watch ${this.prefix} addons.`);
|
||||
this.watcher = fs.watch(this.addonFolder, {persistent: false}, async (eventType, filename) => {
|
||||
if (!eventType || !filename) return;
|
||||
|
|
Loading…
Reference in New Issue