Refactor: Construct IoError from std::io::Error instead of std::io::ErrorKind (#15777)

This commit is contained in:
Piepmatz
2025-05-18 14:52:40 +02:00
committed by GitHub
parent c4dcfdb77b
commit 833471241a
80 changed files with 408 additions and 299 deletions

View File

@ -66,7 +66,7 @@ pub(crate) fn spawn_fake_plugin(
.spawn(move || manager.consume_all(output_read).expect("Plugin read error"))
.map_err(|err| {
IoError::new_internal(
err.kind(),
err,
format!("Could not spawn fake plugin interface reader ({name})"),
nu_protocol::location!(),
)
@ -87,7 +87,7 @@ pub(crate) fn spawn_fake_plugin(
})
.map_err(|err| {
IoError::new_internal(
err.kind(),
err,
format!("Could not spawn fake plugin runner ({name})"),
nu_protocol::location!(),
)