[gnome-builder] libide/code: trace diagnostic error information



commit 72c5cffc735a3d2e8f2d619ab5526673fe1b56b9
Author: Christian Hergert <chergert redhat com>
Date:   Sat Sep 24 15:53:41 2022 -0700

    libide/code: trace diagnostic error information

 src/libide/code/ide-diagnostics-manager.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/code/ide-diagnostics-manager.c b/src/libide/code/ide-diagnostics-manager.c
index 1d86e3def..5a129cf14 100644
--- a/src/libide/code/ide-diagnostics-manager.c
+++ b/src/libide/code/ide-diagnostics-manager.c
@@ -312,10 +312,12 @@ ide_diagnostics_group_diagnose_cb (GObject      *object,
   g_assert (G_IS_ASYNC_RESULT (result));
   g_assert (IDE_IS_DIAGNOSTICS_MANAGER (self));
 
-  IDE_TRACE_MSG ("%s diagnosis completed", G_OBJECT_TYPE_NAME (provider));
-
   diagnostics = ide_diagnostic_provider_diagnose_finish (provider, result, &error);
 
+  IDE_TRACE_MSG ("%s diagnosis completed (%s)",
+                 G_OBJECT_TYPE_NAME (provider),
+                 error ? error->message : "no error");
+
   if (error != NULL &&
       !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
       !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))


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