aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorakbash <akbash@herdr.dev>2026-07-06 18:21:31 +0300
committerGitHub <noreply@github.com>2026-07-06 18:21:31 +0300
commitd9230f517a88be0eb88c9af39f7a4212644c9a3d (patch)
tree745973b12bad8557ef4c3e06fe6ef5d07fc8fc7e /src/main.rs
parente98c49658caf054f2cfdc0f52831f29d59ed6fba (diff)
fix: clarify remote ssh auth failures (#1084)
refs #1034 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3b4bed1c..deb332b9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -661,7 +661,13 @@ fn main() -> io::Result<()> {
}
if let Some(remote_launch) = remote_launch {
- return remote::run_remote(remote_launch);
+ let remote_target = remote_launch.target.clone();
+ if let Err(err) = remote::run_remote(remote_launch) {
+ eprintln!("error: {err}");
+ remote::print_remote_error_hint(&err, &remote_target);
+ std::process::exit(1);
+ }
+ return Ok(());
}
let loaded_config = config::Config::load();