I'll repeat Hack's question for emphasis:

WHAT error message? "The" error message doesn't tell us what the error is. I'm guessing that you haven't defined REGISTRY_SUCCESS.