Inline errors
This commit is contained in:
parent
0580822f36
commit
109d404e05
@ -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}"))),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user