[tracker: 14/21] prefix "deleted super class error" with line and column numbers




commit 425eafef0fe186bc7dc668b50262b3764fdb7bf7
Author: Abanoub Ghadban <abanoub gdb gmail com>
Date:   Thu Aug 19 19:01:25 2021 +0200

    prefix "deleted super class error" with line and column numbers

 src/libtracker-data/tracker-data-manager.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 0489c665d..98915b787 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -1508,15 +1508,19 @@ check_for_deleted_super_classes (TrackerDataManager  *manager,
                }
 
                if (!found) {
-                       const gchar *ontology_path = "Unknown";
+                       const gchar *ontology_path = tracker_class_get_ontology_path (class);
+                       goffset line_no = tracker_class_get_definition_line_no (class);
+                       goffset column_no = tracker_class_get_definition_column_no (class);
                        const gchar *subject = tracker_class_get_uri (class);
+                       const gchar *last_super_class_uri = tracker_class_get_uri (last_super_class);
 
                        handle_unsupported_ontology_change (manager,
                                                            ontology_path,
-                                                           -1,
-                                                           -1,
+                                                           line_no,
+                                                           column_no,
                                                            subject,
-                                                           "rdfs:subClassOf", "-", "-",
+                                                           "rdfs:subClassOf",
+                                                           last_super_class_uri, "-",
                                                            error);
                        return;
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]