Change error type produced by duration parser (#5219)
Change error type produced by duration parser (#5219)

Signed-off-by: Iosmanthus Teng <baa76a6a5829eecb15ba169cea72c8e906bb18e1@gmail.com>
BusyJay/tikv,pingcap/tikv,BusyJay/tikv,pingcap/tikv,BusyJay/tikv,c4pt0r/tikv,BusyJay/tikv