From 852db44e4e5d906bac211c709c1fe5d127378613 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 17:39:58 +0100 Subject: [PATCH] ax(mining): replace prose comment with usage examples in error code block AX Principle 2: comments show HOW with real values, not WHAT the block contains. Co-Authored-By: Charon --- pkg/mining/errors.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/mining/errors.go b/pkg/mining/errors.go index 902c330..9eef3f9 100644 --- a/pkg/mining/errors.go +++ b/pkg/mining/errors.go @@ -4,7 +4,8 @@ import ( "net/http" ) -// Error codes for the mining package +// respondWithError(c, http.StatusNotFound, ErrCodeMinerNotFound, "xmrig not found", err.Error()) +// respondWithError(c, http.StatusConflict, ErrCodeMinerExists, "xmrig already running", "") const ( ErrCodeMinerNotFound = "MINER_NOT_FOUND" ErrCodeMinerExists = "MINER_EXISTS"