What are you returning for error in its “junk” state, then? Clearly not nil, else by your assertion your code will panic. error has member accessors you will call - Error() if nothing else.
Methinks you’ve not thought this through. What’s it about the word error that trips up programmers like this?