[gnome-text-editor] page: log error message on save failure



commit b74c2a4d9c6432dd0a98fbf7a71ec2cbf19477ca
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jul 27 13:03:47 2021 -0700

    page: log error message on save failure

 src/editor-page.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/editor-page.c b/src/editor-page.c
index 1a23d73..15d1204 100644
--- a/src/editor-page.c
+++ b/src/editor-page.c
@@ -738,6 +738,8 @@ editor_page_save_cb (GObject      *object,
 
   if (_editor_document_save_finish (document, result, &error))
     _editor_document_guess_language_async (document, NULL, NULL, NULL);
+  else
+    g_warning ("Failed to save document: %s", error->message);
 }
 
 void


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