diff --git a/GLOSSARY.md b/GLOSSARY.md index 888e0e29d8..9d1ec531ed 100644 --- a/GLOSSARY.md +++ b/GLOSSARY.md @@ -52,8 +52,9 @@ _Avoid_: Custom dictionaries ## Export **Strict export**: -An export that writes nothing, and reports why, when the output would leave out a character or a -picture the document contains. +An export that writes nothing, and reports why, when a character or picture the output is meant +to show would be missing from it. Text the output doesn't show (hidden text, deletions without +markup) isn't checked. _Avoid_: Safe mode, validated export **Missing glyph**: diff --git a/apps/wordcraft-cli/src/main.rs b/apps/wordcraft-cli/src/main.rs index 963d275481..903ba69d5c 100644 --- a/apps/wordcraft-cli/src/main.rs +++ b/apps/wordcraft-cli/src/main.rs @@ -637,7 +637,7 @@ fn run>(args: &[S]) -> Result<(), Failure> { return Err(format!("{out}: is a folder, not a file").into()); } if !out.to_ascii_lowercase().ends_with(".png") { - wordcraft_engine::io::save_bytes(out, &s.doc)?; + wordcraft_engine::io::save_bytes(out, &s.doc).map_err(engine_error)?; } } for out in outputs {