I want to do a brew upgrade and tell homebrew do not upgrade the erlang formula since the latest one does not work on my system.
brew upgrade
erlang
Is it possible
You could upgrade erlang to the latest version but keep using the older working version with the brew commands versions and switch.
versions
switch
To list available versions use:
brew versions erlang
To switch between two installed versions (I'll presume you wanted erlang R14):
brew switch erlang R14B04