mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-11-28 15:44:00 +00:00
- 为 full、tiny 和 ntr 提供 MTR JSON 输出并保留传统模式 - 传播初始化和监听错误,完善取消、资源清理及非零退出 - 补充事件顺序、信号处理和跨平台回归测试及文档
9 lines
352 B
Go
9 lines
352 B
Go
package internal
|
|
|
|
// InitializationError distinguishes unavailable probe resources from send errors.
|
|
// The scheduler must terminate instead of converting it into a timeout.
|
|
type InitializationError struct{ Err error }
|
|
|
|
func (e *InitializationError) Error() string { return e.Err.Error() }
|
|
func (e *InitializationError) Unwrap() error { return e.Err }
|