Add missing return to an error condition