When an invalid ID is passed to a command (e.g. prolific study view badid), the CLI dumps the raw API response body as the error message, which can be hundreds of lines of unformatted text.
Expected behavior: a short, human-readable message like "resource not found" or "request failed with status 404".
This affects all commands since the error handling is in the shared Execute method in client/client.go — any 4xx response with an unrecognized error format gets its full body printed.
When an invalid ID is passed to a command (e.g.
prolific study view badid), the CLI dumps the raw API response body as the error message, which can be hundreds of lines of unformatted text.Expected behavior: a short, human-readable message like "resource not found" or "request failed with status 404".
This affects all commands since the error handling is in the shared
Executemethod inclient/client.go— any 4xx response with an unrecognized error format gets its full body printed.