Skip to content

Commit 9125373

Browse files
Merge pull request #7 from containerscrew/fix/error-handling
Fix error messages
2 parents c518855 + 90ed77e commit 9125373

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ jobs:
6161
- name: Release
6262
uses: softprops/action-gh-release@v1
6363
with:
64-
body: '[Changelog](https://github.com/containerscrew/aws-sso-auth/blob/main/CHANGELOG.md)'
64+
#body: '[Changelog](https://github.com/containerscrew/aws-sso-auth/blob/main/CHANGELOG.md)'
6565
files: "*.zip"
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
generate_release_notes: true
69+
append_body: true

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)