Slightly better error message in getReplyMessage function