Skip to content

Commit

Permalink
use io::Error::Other
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Feb 7, 2024
1 parent 88f2e2d commit e26b8eb
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions cargo-pgrx/src/command/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,15 +449,12 @@ fn configure_postgres(pg_config: &PgConfig, pgdir: &Path, init: &Init) -> eyre::
if output.status.success() {
Ok(())
} else {
Err(std::io::Error::new(
std::io::ErrorKind::Other,
format!(
"{}\n{}{}",
command_str,
String::from_utf8(output.stdout).unwrap(),
String::from_utf8(output.stderr).unwrap()
),
))?
Err(std::io::Error::other(format!(
"{}\n{}{}",
command_str,
String::from_utf8(output.stdout).unwrap(),
String::from_utf8(output.stderr).unwrap()
)))?
}
}

Expand Down

0 comments on commit e26b8eb

Please sign in to comment.