Skip to content

Commit

Permalink
Still exiting on AWS errors, but now printing the actual error to hel…
Browse files Browse the repository at this point in the history
…p users figure out the problem.
  • Loading branch information
swartzrock committed Dec 14, 2020
1 parent 2d9f3a8 commit 0fd318e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/ecsview/clusterdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ func GetClusterContainers(cluster *aws.EcsCluster) []*aws.EcsContainer {
return clusterArnToEcsContainersMap[*cluster.ClusterArn]
}

// Got an AWS error? Likely a credential issue, so let the user know they need to configure their credentials
// Got an AWS error? Print an error message and suggest correctly configuring their AWS profile
func fatalAwsError(err error) {
if err != nil {
log.Fatal("Unable to locate AWS credentials. You can configure credentials by running 'aws configure'.")
log.Fatal("An issue occurred calling the AWS SDK. Please confirm you have the right AWS credentials in place. Error: ", err)
}
}

Expand Down

0 comments on commit 0fd318e

Please sign in to comment.