Changed a routine of error message.