Inline errors

This commit is contained in:
p11 2025-04-21 16:21:20 +02:00
parent 0580822f36
commit 109d404e05

View File

@ -330,7 +330,7 @@ fn render_choice(block: &DialogBlock<Parameter>, index: usize, progress: &str) -
} }
@match String::from_utf8(content) { @match String::from_utf8(content) {
Ok(text) => (maud::PreEscaped(text)), Ok(text) => (maud::PreEscaped(text)),
Err(e) => (maud::PreEscaped(format!("Error: {}", e))), Err(e) => (maud::PreEscaped(format!("Error: {e}"))),
} }
} }
} }
@ -474,7 +474,7 @@ fn render_dialog_block(block: &dialogi::DialogBlock<Parameter>) -> Markup {
div .dialog-content { div .dialog-content {
@match String::from_utf8(content) { @match String::from_utf8(content) {
Ok(text) => (maud::PreEscaped(text)), Ok(text) => (maud::PreEscaped(text)),
Err(e) => (maud::PreEscaped(format!("Error: {}", e))), Err(e) => (maud::PreEscaped(format!("Error: {e}"))),
} }
} }
} }