From 1353e53e6510e079b74d57e2c1c625c7d9f0542d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 19 Nov 2021 10:02:33 +0100 Subject: [PATCH] Fix error/info messages for binary name Signed-off-by: Matthias Beyer --- src/commands/db.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/db.rs b/src/commands/db.rs index 30eec02..c0b1a5c 100644 --- a/src/commands/db.rs +++ b/src/commands/db.rs @@ -85,10 +85,10 @@ fn cli(db_connection_config: DbConnectionConfig<'_>, matches: &ArgMatches) -> Re .map_err(Error::from) .and_then(|out| { if out.status.success() { - info!("pgcli exited successfully"); + info!("psql exited successfully"); Ok(()) } else { - Err(anyhow!("gpcli did not exit successfully")) + Err(anyhow!("psql did not exit successfully")) .with_context(|| match String::from_utf8(out.stderr) { Ok(log) => anyhow!("{}", log), Err(e) => anyhow!("Cannot parse log into valid UTF-8: {}", e), @@ -120,7 +120,7 @@ fn cli(db_connection_config: DbConnectionConfig<'_>, matches: &ArgMatches) -> Re info!("pgcli exited successfully"); Ok(()) } else { - Err(anyhow!("gpcli did not exit successfully")) + Err(anyhow!("pgcli did not exit successfully")) .with_context(|| match String::from_utf8(out.stderr) { Ok(log) => anyhow!("{}", log), Err(e) => anyhow!("Cannot parse log into valid UTF-8: {}", e), -- 2.45.2