Feat: optimize throw error

This commit is contained in:
unitwk 2022-09-18 19:34:04 +08:00
parent 4d468c7f15
commit 390726d147

View File

@ -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"));
}
}