Correct error messages for sequence clip validation

This commit is contained in:
2026-04-15 00:22:28 +02:00
parent 6975a12d5b
commit 144c717757

View File

@@ -3538,7 +3538,7 @@ function readProjectSequenceClip(value: unknown, label: string): SequenceClip {
}; };
case "startDialogue": case "startDialogue":
if (stepClass !== "impulse") { if (stepClass !== "impulse") {
throw new Error(`${label}.startDialogue steps must use the impulse class.`); throw new Error(`${label}.startDialogue clips must use the impulse class.`);
} }
return { return {
@@ -3548,7 +3548,7 @@ function readProjectSequenceClip(value: unknown, label: string): SequenceClip {
}; };
case "teleportPlayer": case "teleportPlayer":
if (stepClass !== "impulse") { if (stepClass !== "impulse") {
throw new Error(`${label}.teleportPlayer steps must use the impulse class.`); throw new Error(`${label}.teleportPlayer clips must use the impulse class.`);
} }
return { return {
@@ -3561,7 +3561,7 @@ function readProjectSequenceClip(value: unknown, label: string): SequenceClip {
}; };
case "toggleVisibility": case "toggleVisibility":
if (stepClass !== "impulse") { if (stepClass !== "impulse") {
throw new Error(`${label}.toggleVisibility steps must use the impulse class.`); throw new Error(`${label}.toggleVisibility clips must use the impulse class.`);
} }
return { return {