Added exception name in debug error message

This can help when some exception has no error message.