Summary
REPL binary currently panics on startup and shutdown because main uses unwrap() for both thread spawn and join.
Reproduction
- Trigger an error path in
Repl::run().
- Start the
veld REPL binary.
- Observe panic due to unwrap().
Expected
Errors should be surfaced cleanly and process should exit with a controlled error.
Actual
main panics on thread spawn/join unwrap paths.
Proposed fix
Return errors from spawn/join and propagate them from main with VeldError::RuntimeError.
Summary
REPL binary currently panics on startup and shutdown because main uses unwrap() for both thread spawn and join.
Reproduction
Repl::run().veldREPL binary.Expected
Errors should be surfaced cleanly and process should exit with a controlled error.
Actual
mainpanics on thread spawn/join unwrap paths.Proposed fix
Return errors from spawn/join and propagate them from main with
VeldError::RuntimeError.