nushell/crates/nu-command/src/system
Devyn Cairns 626d597527
Replace panics with errors in thread spawning (#12040)
# Description
Replace panics with errors in thread spawning.

Also adds `IntoSpanned` trait for easily constructing `Spanned`, and an
implementation of `From<Spanned<std::io::Error>>` for `ShellError`,
which is used to provide context for the error wherever there was a span
conveniently available. In general this should make it more convenient
to do the right thing with `std::io::Error` and always add a span to it
when it's possible to do so.

# User-Facing Changes
Fewer panics!

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
2024-03-02 11:14:02 -06:00
..
complete.rs Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00
exec.rs Enforce required, optional, and rest positional arguments start with an uppercase and end with a period. (#11285) 2023-12-15 14:32:37 +08:00
mod.rs FreeBSD compatibility patches (#11869) 2024-02-17 20:04:59 +01:00
nu_check.rs Specify which file not found in error (#11868) 2024-02-21 21:27:13 +08:00
ps.rs FreeBSD compatibility patches (#11869) 2024-02-17 20:04:59 +01:00
registry_query.rs Name the Value conversion functions more clearly (#11851) 2024-02-17 18:14:16 +00:00
run_external.rs Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00
sys.rs Bump sysinfo from 0.29 to 0.30 (#11484) 2024-01-05 05:31:29 -06:00
which_.rs Fix incorrect handling of boolean flags for builtin commands (#11492) 2024-01-11 17:19:48 +02:00