mm_config 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.js +1 -1
- package/index.js +3 -3
- package/package.json +1 -1
package/base.js
CHANGED
package/index.js
CHANGED
|
@@ -30,7 +30,7 @@ class ConfigManager {
|
|
|
30
30
|
try {
|
|
31
31
|
this.config = _jsonFile.loadJson();
|
|
32
32
|
} catch(error) {
|
|
33
|
-
$.log.error(`Error loading config from ${_jsonFile}:`, error.message);
|
|
33
|
+
$.log.error(`[Config] Error loading config from ${_jsonFile}:`, error.message);
|
|
34
34
|
this.config = {};
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -45,7 +45,7 @@ class ConfigManager {
|
|
|
45
45
|
this.filePath.saveJson(this.config);
|
|
46
46
|
return true;
|
|
47
47
|
} catch(error) {
|
|
48
|
-
$.log.error(`Error saving config to ${this.filePath}:`, error.message);
|
|
48
|
+
$.log.error(`[Config] Error saving config to ${this.filePath}:`, error.message);
|
|
49
49
|
return false;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -66,7 +66,7 @@ class ConfigManager {
|
|
|
66
66
|
return true;
|
|
67
67
|
})
|
|
68
68
|
.catch(error => {
|
|
69
|
-
$.log.error(`Error saving config to ${this.filePath}:`, error.message);
|
|
69
|
+
$.log.error(`[Config] Error saving config to ${this.filePath}:`, error.message);
|
|
70
70
|
return false;
|
|
71
71
|
});
|
|
72
72
|
|