Browse Source

错误消息更新

master
sige 2 years ago
parent
commit
d2f153679f
  1. 2
      src/main/java/com/dreamworks/boditech/service/AccountService.java
  2. 2
      src/main/java/com/dreamworks/boditech/service/DeviceService.java

2
src/main/java/com/dreamworks/boditech/service/AccountService.java

@ -61,7 +61,7 @@ public class AccountService {
// logout
public void logout() {
if ( this.deviceService.isExecutorRunning() ) {
throw new RuntimeException("ACCOUNT_LOGOUT_EXECUTOR_RUNNING");
throw new RuntimeException("设备正在运行,无法退出登录");
}
this.actionLog.log("account.logout");

2
src/main/java/com/dreamworks/boditech/service/DeviceService.java

@ -83,7 +83,7 @@ public class DeviceService {
*/
public void start() {
if ( null != this.taskExecutor ) {
throw new RuntimeException("DEVICE_ALREADY_STARTED");
throw new RuntimeException("设备已启动");
}
// @TODO : 后面要详细检查耗材

Loading…
Cancel
Save