Clear UI Error

I am trying to bind a non GCD weapon use to rejuvenation and clear the item not ready error that pops up. This is what i have but am still getting the item not ready error. Any suggestions.

#showtooltip Rejuvenation
/use 16
/cast [target=mouseover] Rejuvenation
/run UIErrorsFrame:Clear()

It’s a race condition issue. Basically you’re clearing the error frame before the message is triggered.