ax(mining): replace APIError prose comment with usage example
Some checks failed
Test / test (push) Waiting to run
Security Scan / security (push) Failing after 23s

AX principle 2 — comments must show HOW with real values, not restate
what the type declaration already says.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 14:35:13 +01:00
parent 8b00af67d7
commit be137e61c5
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -49,7 +49,7 @@ type Service struct {
mcpServer *ginmcp.GinMCP
}
// APIError represents a structured error response for the API
// APIError{Code: "miner_not_found", Message: "xmrig not running", Retryable: false}
type APIError struct {
Code string `json:"code"` // Machine-readable error code
Message string `json:"message"` // Human-readable message