forked from mirror/MCSM-Daemon
Feat: optimize throw error
This commit is contained in:
parent
4d468c7f15
commit
390726d147
@ -42,7 +42,7 @@ export default class StartCommand extends InstanceCommand {
|
||||
if (endTime) {
|
||||
const currentTime = new Date().getTime();
|
||||
if (endTime <= currentTime) {
|
||||
return instance.failure(new Error($t("start.instanceMaturity")));
|
||||
throw new Error($t("start.instanceMaturity"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user