Mining/.gitignore
snider 2e59604825 feat(api): Add structured API error responses with codes and suggestions
- Add APIError struct with code, message, details, suggestion, retryable
- Add error code constants (MINER_NOT_FOUND, PROFILE_NOT_FOUND, etc.)
- Add respondWithError helper with automatic suggestions per error type
- Update miner not found and profile not found errors to use new format
- Fix .gitignore to not match pkg/mining directory

Improves DX by providing machine-readable error codes and actionable suggestions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 09:38:25 +00:00

67 lines
802 B
Text

# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
*.log
# Go CLI binaries
miner-ctrl
miner-cli
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
coverage.html
# Dependency directories (remove the comment below to include it)
vendor/
# Go workspace file
go.work
go.work.sum
# Build artifacts
dist/
build/
bin/
*.tar.gz
*.zip
# Miner C++ build artifacts
miner/core/build/
miner/proxy/build/
miner/cuda/build/
miner/heatmap/build/
# IDE specific files
.idea/
.vscode/
*.swp
*.swo
*~
.DS_Store
# Temporary files
tmp/
temp/
*.tmp
# Environment files
.env
.env.local
.env.*.local
# goreleaser
.goreleaser.yaml.bak
# MkDocs build output
/site/
.cache/
# Playwright MCP screenshots
.playwright-mcp/
/mining