
When assigning Nurses to Patients, invalid indices in either or both places lead to the exact same error message that is non-specific, and does not state which index (or if both) is wrong. Even though this is not a major error, it may frequently be encountered, especially if users also end up filtering the list using list nurse or list patient or otherwise.
To reproduce the behaviour type in:
assign 1 (valid) 10 (invalid)
assign 10 (invalid) 1 (valid)
assign 10 (invalid) 10 (invalid)
When assigning Nurses to Patients, invalid indices in either or both places lead to the exact same error message that is non-specific, and does not state which index (or if both) is wrong. Even though this is not a major error, it may frequently be encountered, especially if users also end up filtering the list using
list nurseorlist patientor otherwise.To reproduce the behaviour type in:
assign 1 (valid) 10 (invalid)
assign 10 (invalid) 1 (valid)
assign 10 (invalid) 10 (invalid)