The primary reason it is like this is that you have overcooked the sauce. After adding jaggery, you need to simmer the mixture until jaggery melts. Your paste/sauce/chutney will become black if you continue cooking it.
Jaggery rapidly changes colour when cooked on high flame for a long time. Therefore, only simmer and do not overcook.