Warn if the input is too short. (#418862, Halton Huo)