Remove warnings for errors that are returned.

ok @owainga.