your elf should count their blessings that they’re even alive before complaining that they ended up as a goblin.
This reminds me: depending on the edition, Reincarnation might the only option for reviving elves.
OD&D Raise Dead works "with men, elves, and dwarves only", thus excluding halflings.
1e Raise Dead says "When the cleric casts a
raise dead spell, he or she can restore life to a dwarf, gnome, half-elf, halfling, or human," thus excluding elves. And Resurrection extends the amount of time they can have been dead, but otherwise says "See
raise dead for limitations on what persons can be raised."
2e Raise Dead is the same except it adds, "(other creatures may be allowed at the DM's option)", but Resurrection can "restore life and complete strength to any living creature, including elves".