Pass on means to give or communicate something to another person.
So, the sentence means that the boy promised to communicate the message to his brother.
Pass by — means to go past someone or something.
Pass on — means to communicate or transfer something to another person. ✅
Pass out — means to distribute something or become unconscious.
Pass over — means to ignore, overlook, or move across something.