linear-cli icon indicating copy to clipboard operation
linear-cli copied to clipboard

Error messages should be user-friendly, not stack traces

Open schpetbot opened this issue 10 months ago • 0 comments

Problem

When an operation fails due to a non-existent issue (e.g., linear issue relation add FAKE-9999 blocks CLI-75), the CLI dumps a full GraphQL stack trace instead of a clean user-facing error message.

Current behavior:

Failed to create relation: Error: Entity not found: Issue: {"response":{"data":null,"errors":[{"message":"Entity not found: Issue","path":["issue"]...
    at runRequest (file:///home/exedev/.cache/deno/npm/registry.npmjs.org/graphql-request/7.2.0/src/legacy/helpers/runRequest.ts:105:12)
    at eventLoopTick (ext:core/01_core.js:187:7)
    ...

Expected behavior:

Could not find issue: FAKE-9999

Suggestion

Error messages should be clean and user-friendly by default. Stack traces should only be shown when something equivalent to RUST_BACKTRACE=1 is passed (e.g., --verbose, --debug, or LINEAR_DEBUG=1).

Affected commands

Found during testing of issue relation, but likely affects other commands that look up issues by identifier.

schpetbot avatar Jan 30 '26 18:01 schpetbot