Fix out of range error message
Merge pull request #17763 from kamipo/fix_out_of_range_error_message

Fix out of range error message