mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 02:07:09 -06:00
The engine's guard turns a panic inside a command into EngineError::Internal and rolls the document back. The panic checks in command_sweep.rs counted that error like any other error. They include probe, which the empty-params, junk-params and structured-junk sweeps call. The tests in import_fuzz.rs that open, place or paste a file through a command counted it the same way. None of them reported the panic. Each of these checks now passes the command's result through no_panic, which the library file tests in import_fuzz.rs already use, and the change adds a copy of it to command_sweep.rs. A case whose command panics now fails. The panic from no_panic reads "<command> panicked: <message>", and the checks that print a panic's message show it. Each check handles any other error as before.