Closed ifraixedes closed 6 years ago
An example of the error output produced with this changes is:
Error: 4 error(s) occurred.
region: eu-west-3, service: ec2, AWS error message: "eu-west-3: error while using 'ec2' service - DryRunOperation: Request would have succeeded, but DryRun flag is set.
status code: 412, request id: 64bd9b7d-7836-44b8-9b2d-334b42ee8edd"
region: eu-west-2, service: ec2, AWS error message: "eu-west-2: error while using 'ec2' service - DryRunOperation: Request would have succeeded, but DryRun flag is set.
status code: 412, request id: dcdeb4ce-d3b4-4d46-baa8-7a5f02c49308"
region: eu-west-1, service: ec2, AWS error message: "eu-west-1: error while using 'ec2' service - DryRunOperation: Request would have succeeded, but DryRun flag is set.
status code: 412, request id: 5a142ab5-b7bc-4c7f-b072-fe71d5d32b36"
region: eu-central-1, service: ec2, AWS error message: "eu-central-1: error while using 'ec2' service - DryRunOperation: Request would have succeeded, but DryRun flag is set.
status code: 412, request id: e5969169-a062-4825-ab12-7b97922b8a22"
It can be reviewed again after the #19 and #18 be merged and this branch be rebased with such changes.
The branch need to be rebased as you commented
@xlr-8 Review again, I've realized that they were some tests for the errors and the output wasn't what I expected, so I updated the tests and do the changes again in the errors to pass the test expectations.
Refactoring of the error message of the Err type, which is used to return the errors of the AWSReader interface, in order to provide meaningful details of the errors which have happened.
closes #10