Skip to content

Commit

Permalink
Merge pull request #179 from stargazing-dino/prepare_line_markup_error
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim authored Feb 21, 2024
2 parents 230a0e7 + 1f6802d commit 17cee36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/runtime/src/virtual_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 17cee36

Please sign in to comment.