Why Rewording an Error Message Can Break CLI Integrations
A configuration validator's error text is parsed by an editor extension, so rewording the message for readability silently breaks the integration. The author proposes stable diagnostic codes such as CONFIG_REQUIRED, which let consumers rely on meaning rather than wording. A JSON report with a format version, tool version, and a structured path to the problematic value is shown as a worked example. The article also sets rules for severity, success results, and keeping secret values out of messages. It stresses that stdout must contain exactly one JSON document, with progress and human-readable text sent to stderr.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in