Commit f9a38de2 authored by zhiqiangxu's avatar zhiqiangxu Committed by GitHub

show more info for ErrInvalidChannelTimeout (#13008)

parent ae24f01d
...@@ -104,7 +104,7 @@ func (cc *ChannelConfig) Check() error { ...@@ -104,7 +104,7 @@ func (cc *ChannelConfig) Check() error {
// The [ChannelTimeout] must be larger than the [SubSafetyMargin]. // The [ChannelTimeout] must be larger than the [SubSafetyMargin].
// Otherwise, new blocks would always be considered timed out. // Otherwise, new blocks would always be considered timed out.
if cc.ChannelTimeout < cc.SubSafetyMargin { if cc.ChannelTimeout < cc.SubSafetyMargin {
return ErrInvalidChannelTimeout return fmt.Errorf("%w: %d < %d", ErrInvalidChannelTimeout, cc.ChannelTimeout, cc.SubSafetyMargin)
} }
// The max frame size must at least be able to accommodate the constant // The max frame size must at least be able to accommodate the constant
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment