Skip to content

Commit 75e15a2

Browse files
Fix error messages
1 parent c518855 commit 75e15a2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/commands/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ impl Configuration {
4242
Ok(file) => file,
4343
Err(err) => {
4444
error!("Can't create configuration file. {}", err);
45+
error!("Dir ~/.aws exists?");
4546
exit(1);
4647
}
4748
};

src/commands/start.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ pub fn start(region_name: String, start_url: String, workers: usize, retries: u3
2020
match runtime {
2121
Ok(_) => info!("All good, bye! 👋"),
2222
Err(err) => {
23-
error!("Error executing tokio runtime. {}", err);
23+
error!(error = err, "Error executing tokio runtime");
24+
if err.to_string() == "InvalidRequestException" {
25+
error!("Is the configuration in ~/.aws/aws-sso-auth.json valid?");
26+
}
2427
}
2528
}
2629
}

0 commit comments

Comments
 (0)