diff --git a/crates/runtime/src/virtual_machine.rs b/crates/runtime/src/virtual_machine.rs index 081b608a..85c4b4f3 100644 --- a/crates/runtime/src/virtual_machine.rs +++ b/crates/runtime/src/virtual_machine.rs @@ -555,7 +555,9 @@ impl VirtualMachine { } })?; let substituted_text = expand_substitutions(&line_text, substitutions); - let markup = self.parse_markup(&substituted_text).unwrap(); + let markup = self + .parse_markup(&substituted_text) + .map_err(DialogueError::MarkupParseError)?; let line = Line { id: string_id, text: markup.text,