guide to the homepage when there are more info to visit

This commit is contained in:
砚然 2018-07-11 15:20:39 +08:00
parent 0241b90e4d
commit e7732049db
2 changed files with 7 additions and 1 deletions

View File

@ -85,9 +85,11 @@ crtMgr.trustRootCA = function *() {
} else { } else {
console.error(result); console.error(result);
logUtil.info('Failed to trust the root CA, please trust it manually'); logUtil.info('Failed to trust the root CA, please trust it manually');
util.guideToHomePage();
} }
} else { } else {
logUtil.info('Please trust the root CA manually so https interception works'); logUtil.info('Please trust the root CA manually so https interception works');
util.guideToHomePage();
} }
} }

View File

@ -216,7 +216,7 @@ function deleteFolderContentsRecursive(dirPath, ifClearFolderItself) {
throw new Error('can_not_delete_this_dir'); throw new Error('can_not_delete_this_dir');
} }
console.info('==>>> delete cache ', dirPath); logUtil.info('==>>> clearing cache ', dirPath);
if (fs.existsSync(dirPath)) { if (fs.existsSync(dirPath)) {
fs.readdirSync(dirPath).forEach((file) => { fs.readdirSync(dirPath).forEach((file) => {
@ -324,3 +324,7 @@ module.exports.execScriptSync = function (cmd) {
status status
}; };
}; };
module.exports.guideToHomePage = function () {
logUtil.info('Refer to http://anyproxy.io for more detail');
};