Show rendering errors to user
This also delays the response to the HTTP request until the printer has printed whatever it should.
This commit is contained in:
parent
14a0596a25
commit
aaa1a916da
9 changed files with 33 additions and 25 deletions
|
|
@ -22,6 +22,5 @@ pub async fn post(server: State<Server>, Form(form): Form<FormData>) -> somehow:
|
|||
.with_json("/data.json", &data)
|
||||
.with_main_file(include_str!("main.typ"));
|
||||
|
||||
server.print_typst(typst).await;
|
||||
Ok(())
|
||||
server.print_typst(typst).await
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue