Open tephrocactus opened 1 month ago
Function NewNodeHost (nodehost:339)
When panic happens it's message is type-asserted as error, but often panic() is called with just a string. As a result panic is silently recovered without calling panicNow() and nil NodeHost instance is returned without any error. It is now fixed.
if you add a default it would be a general fix
default
Function NewNodeHost (nodehost:339)
When panic happens it's message is type-asserted as error, but often panic() is called with just a string. As a result panic is silently recovered without calling panicNow() and nil NodeHost instance is returned without any error. It is now fixed.