Skip to content

Commit e773204

Browse files
committed
guide to the homepage when there are more info to visit
1 parent 0241b90 commit e773204

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/certMgr.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ crtMgr.trustRootCA = function *() {
8585
} else {
8686
console.error(result);
8787
logUtil.info('Failed to trust the root CA, please trust it manually');
88+
util.guideToHomePage();
8889
}
8990
} else {
9091
logUtil.info('Please trust the root CA manually so https interception works');
92+
util.guideToHomePage();
9193
}
9294
}
9395

lib/util.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function deleteFolderContentsRecursive(dirPath, ifClearFolderItself) {
216216
throw new Error('can_not_delete_this_dir');
217217
}
218218

219-
console.info('==>>> delete cache ', dirPath);
219+
logUtil.info('==>>> clearing cache ', dirPath);
220220

221221
if (fs.existsSync(dirPath)) {
222222
fs.readdirSync(dirPath).forEach((file) => {
@@ -324,3 +324,7 @@ module.exports.execScriptSync = function (cmd) {
324324
status
325325
};
326326
};
327+
328+
module.exports.guideToHomePage = function () {
329+
logUtil.info('Refer to http://anyproxy.io for more detail');
330+
};

0 commit comments

Comments
 (0)