From 3205965afbd9c4fce00dc03cccd6b6223ddb1d15 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Sun, 8 Dec 2019 14:17:23 -0500 Subject: Overhaul error handling for controllers This change fixes various issues with the GET endpoints to return more accurate error messages. It adds business logic error objects that are returned in a union type in the controllers. This change should help separate the business logic from the actual errors from upstream services. There may be required changes still with handling those upstream errors via Promises. Integration tests should be added to verify issues. --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index e69a885..c81d077 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2.1] + +### Added + +- Business logic errors for explicit dataflow handling + +### Changed + +- Changed formats/metadata to return union types with business logic errors +- Fixed 404 responses for all GET endpoints + ## [0.2.0] ### Added @@ -31,5 +42,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Code formatting using Prettier [unreleased]: https://git.submelon.dev/kjhoerr/ao-coverage/src/branch/trunk +[0.2.1]: https://git.submelon.dev/kjhoerr/ao-coverage/src/tag/v0.2.1 [0.2.0]: https://git.submelon.dev/kjhoerr/ao-coverage/src/tag/v0.2.0 [0.1.0]: https://git.submelon.dev/kjhoerr/ao-coverage/src/tag/v0.1.0 -- cgit