Agent-Hellboy / Agent-Hellboy/mcp-runtime

Improve overall error handling

Đang mở
#35 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
6
Fork
1
Merge trung bình
11 giờ 33 phút
Pull request đã merge (30 ngày)
13

Mô tả

- internal/cli/errors.go and the CLI commands wrap errors with typed sentinels (errx) and add context, which matches the “wrap at
module boundaries” idea. But those errors don’t capture stack traces, timestamps, or host info, and user output is just the raw
error message (no friendly one-liner or correlation ID).
- The operator layer uses the same errx helpers (internal/operator/errors.go, internal/operator/controller.go) to add context, but
likewise lacks stack traces/timestamps and doesn’t generate user-facing IDs.
- Other packages (e.g., pkg/metadata/loader.go) still return plain fmt.Errorf values with %w; they aren’t wrapped into a module-
specific type or enriched, so boundary enforcement isn’t consistent.
- Top-level handling (cmd/mcp-runtime/main.go) just prints err.Error() to stderr; it doesn’t distinguish well-formed vs malformed
errors, doesn’t attach a log ID, and doesn’t map messages to friendly user text.
- Nowhere are correlation IDs, stack traces, or UTC instantiation times recorded or surfaced, so postmortems and user bug reports
can’t link to detailed logs.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.