Then, here's an alternative:
1) If the hero learned a spell, display the standard message in the center of the screen.
2) If the hero didn't learn a spell (for any reason), display the spell's icon in the info panel.
That makes sense! It's fair and applies to other buildings as well, like the witch's hut.

