When provided with a negative dosage, the system prints the error message "Dosages should only contain numeric characters, and it should not be blank."
This is slightly inaccurate and may cause confusion for the users as the dosage entered is indeed numeric (but negative) and not blank. A better error message should mention that negative dosages are not allowed.
When provided with a negative dosage, the system prints the error message "Dosages should only contain numeric characters, and it should not be blank."
This is slightly inaccurate and may cause confusion for the users as the dosage entered is indeed numeric (but negative) and not blank. A better error message should mention that negative dosages are not allowed.