Skip to content

Commit

Permalink
Improve error message written on conninfo parse failures
Browse files Browse the repository at this point in the history
Should probably be more consistent with the ERROR: prefix across the
program.
  • Loading branch information
johto committed Sep 15, 2023
1 parent 03d3c88 commit 8c3c475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pg_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::process;
pub fn create(conninfo: &str) -> postgres::config::Config {
let mut pg_config = match conninfo.parse::<postgres::config::Config>() {
Err(err) => {
eprintln!("foo {}", err);
eprintln!("ERROR: invalid CONNINFO string: {}", err);
process::exit(1);
},
Ok(pg_config) => pg_config,
Expand Down

0 comments on commit 8c3c475

Please sign in to comment.