copy STD's better undef message