TrinityCore/TrinityCore — comment on commit e602619912654ef0b97f02fa97aa7dbb537c2f89
File:  line 0
By malcrom:

Atm on trinity if you click "yes" to unlearn talent points after clicking "Unlearn Talents" and you have no used talent points you will get error message "You have not spent any talent points.".

On offi when you click gossip option "Unlearn Talents" and you have no used talent points you get error "You have not spent any talent points.".

So the error checking should go before attempting to wipe not after.