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 <charon@lethean.io>
This commit is contained in:
parent
21c815b494
commit
852db44e4e
1 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue