When a user operation fails (for example, attempting to open a position with insufficient collateral or submitting invalid parameters), the CDP SDK often returns a generic error message that lacks structured details. This makes it difficult for developers to programmatically determine the exact cause of the failure and provide useful UI feedback to end users.
Steps to reproduce:
- Set up a project that integrates the CDP SDK.
- Initialize the CDP client with valid credentials and configuration.
- Attempt a CDP operation that is expected to fail (e.g., open a CDP with collateral below the minimum requirement).
- Observe the error returned by the SDK (typically a generic message with little context).