diff --git a/pkg/mining/service.go b/pkg/mining/service.go index 3abe30e..08f8883 100644 --- a/pkg/mining/service.go +++ b/pkg/mining/service.go @@ -100,8 +100,8 @@ func respondWithError(c *gin.Context, status int, code string, message string, d c.JSON(status, apiErr) } -// respondWithMiningError sends a structured error response from a MiningError. -// This allows using pre-built error constructors from errors.go. +// respondWithMiningError(c, ErrMinerNotFound("xmrig")) +// respondWithMiningError(c, ErrInternal("failed to read config").WithCause(err)) func respondWithMiningError(c *gin.Context, err *MiningError) { details := "" if err.Cause != nil {