mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
opti: 修改install错误提示
This commit is contained in:
parent
93696c6c3c
commit
37bf68b55f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user