aws / aws-nitro-enclaves-cli

Tooling for Nitro Enclave Management
Apache License 2.0
121 stars 81 forks source link

enclave_build: Error refactor #420

Closed raulmldv closed 1 year ago

raulmldv commented 1 year ago

Dockerless frature (1/5)

This is the first PR from splitting the initial one #404.

To avoid defining error types in each module file to be implemented for this feature, I created a general error type in the lib.rs file. In this way, the enclave build error can be used outside the crate and also extended easier. By using thiserror attributes, we don't need display implementations for every defined error.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.