-
Notifications
You must be signed in to change notification settings - Fork 177
Description
Create a 2 layer system for handling errors.
layer 1. Underlying functions and frameworks used in the CLI (like client, deployer, builder etc.) will return typed errors.
layer 2. CLI will catch these errors and based on the type provided will return a technical error from within those functions and layer another CLI specific error on top for the user.
This way we can systematically have both a valid technical error and user friendly error returned to the user depending on what situation/edge case etc. is hit.
This will require creating more error types in the core of codebase. This should be accessible via all the interfaces used in the CLI so that it is not specific to them. Example: We have multiple builders and we want to have these errors consistent across all. We might have multiple deployers, same deal.