summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-11-19 10:02:33 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-11-19 10:02:33 +0100
commit1353e53e6510e079b74d57e2c1c625c7d9f0542d (patch)
tree48d56eb8ed1457bc7bbbe546626498fdffa0ab1e /src
parentde345521d9fbbb5ae641c27667b9ee7823fa8066 (diff)
Fix error/info messages for binary name
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src')
-rw-r--r--src/commands/db.rs6
1 files 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),