diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2024-02-14 12:50:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-14 11:50:40 +0000 |
| commit | 8a2527788c33dd41ddefaad4c47a01d9442d898e (patch) | |
| tree | 8b4f8872dbbd425a215e66338fb3141c026fe85a /crates/typst-cli/src/compile.rs | |
| parent | 52571dd9efed3a76db85123781e27f96598dc4b3 (diff) | |
Fix watches on moves and removes (#3371)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'crates/typst-cli/src/compile.rs')
| -rw-r--r-- | crates/typst-cli/src/compile.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst-cli/src/compile.rs b/crates/typst-cli/src/compile.rs index 337ec966..8e628b4e 100644 --- a/crates/typst-cli/src/compile.rs +++ b/crates/typst-cli/src/compile.rs @@ -63,7 +63,8 @@ impl CompileCommand { /// Execute a compilation command. pub fn compile(mut timer: Timer, mut command: CompileCommand) -> StrResult<()> { - let mut world = SystemWorld::new(&command.common)?; + let mut world = + SystemWorld::new(&command.common).map_err(|err| eco_format!("{err}"))?; timer.record(&mut world, |world| compile_once(world, &mut command, false))??; Ok(()) } |
