Added debug in error for knows exceptions