Skip to content

Commit 04fc7e3

Browse files
committed
bug fix
1 parent 8fe50e7 commit 04fc7e3

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

main/bootloader/checkInternet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
try {
1212
await checkInternetConnected(config);
1313
} catch (e) {
14-
throw `Vui long kiem tra lai ket noi internet!\nmessage:${e.message}`;
14+
throw `Vui long kiem tra lai ket noi internet! (${e.message})`;
1515
}
1616
}
1717
};

main/bootloader/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
cli: require("./cli"),
2+
// cli: require("./cli"),
33
checkInternet: require("./checkInternet"),
44
checkNode: require("./checkNode"),
55
foolHeroku: require("./foolHeroku"),

main/helpers/PluginManager.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const Manager = require("./Manager");
2-
const logger = require("node-color-log");
32

43
module.exports = class CommandManager extends Manager {
54
constructor(plugins = {}) {
@@ -12,7 +11,7 @@ module.exports = class CommandManager extends Manager {
1211
for (const name in plugins) {
1312
for (const keyword of plugins[name].keywords) {
1413
if (checkKeyword[keyword]) {
15-
logger.warn(
14+
console.newLogger.warn(
1615
`Vui long kiem tra lai keyword cua plugin: ${name}.js va ${checkKeyword[keyword]}.js, bi trung keyword: ${keyword}`
1716
);
1817
}

main/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ globalThis.kb2abot = Object.assign(k2babotGlobalModel, {
2828

2929

3030
const {
31-
cli,
31+
// cli,
3232
checkInternet,
3333
checkNode,
3434
foolHeroku,
@@ -47,7 +47,7 @@ tasks.push(updateCli);
4747
tasks.push(foolHeroku);
4848
tasks.push(checkNode);
4949
tasks.push(preload);
50-
tasks.push(cli);
50+
// tasks.push(cli);
5151

5252
cluster.on("exit", (worker, code, signal) => {
5353
if (signal) {
@@ -65,7 +65,9 @@ const bootloader = async () => {
6565
await task.fn();
6666
}
6767
catch(e) {
68-
console.newLogger.error(e.message);
68+
console.log();
69+
console.newLogger.error(e);
70+
spinner.stop();
6971
process.exit();
7072
}
7173
spinner.succeed();

0 commit comments

Comments
 (0)