opti: 修改install错误提示

This commit is contained in:
suxiaoxin 2017-09-26 20:11:19 +08:00
parent 93696c6c3c
commit 37bf68b55f

View File

@ -13,8 +13,7 @@ function install() {
let exist = yapi.commons.fileExist(yapi.path.join(yapi.WEBROOT_RUNTIME, 'init.lock'));
if (exist) {
yapi.commons.log('runtime/init.lock文件已存在请确认您是否已安装。如果需要重新安装请删掉runtime/init.lock文件');
process.exit(0);
throw new Error('init.lock文件已存在请确认您是否已安装。如果需要重新安装请删掉init.lock文件');
}
setupSql();