Add missing return in error case.