When i enter add d/2020-10-14 w/-12, the exception tells me Weight should only contain numbers, and it can only take up to at most 2 decimal points . However, this does not point it the problem but should in fact be it should be a postive number with the exception given, it should also remind the user about the unit of weight like kg. Coz it will affect the value entered as well. This may not really happen to enter negative number, but if user accidentally do this and the error should be able to match.
When i enter add d/2020-10-14 w/-12, the exception tells me Weight should only contain numbers, and it can only take up to at most 2 decimal points . However, this does not point it the problem but should in fact be it should be a postive number with the exception given, it should also remind the user about the unit of weight like kg. Coz it will affect the value entered as well. This may not really happen to enter negative number, but if user accidentally do this and the error should be able to match.
[original: nus-cs2103-AY2021S1/pe-interim#4604]