(I'm happy if you choose to mark this as a duplicate - my main goal is to increase the googlability of this aspect of the current code). A workaround (I suspect, working on it now) is to implement a newtype and wrap everything that encounters surf error types.