Fixed error message for messages controller