I think this is fine.  It was probably coded this way to not create too many warnings when the real failure was reported upstream.