Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta <antenore@simbiosi.org>2019-07-29 18:02:24 +0300
committerAntenore Gatta <antenore@simbiosi.org>2019-07-29 18:02:24 +0300
commitd66f7c667b3816ea8f800e67a3b4cc3841930ef6 (patch)
tree68ccc755b3c08f45fd470926f02fe3f5a6cad8d6
parent0a9af2ca0bb17c8707059945ea9e7115c45f2989 (diff)
Error messages are always fatal, switching to g_warning
-rw-r--r--plugins/www/www_plugin.c2
-rw-r--r--src/remmina_pref.c2
-rw-r--r--src/rmnews.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/www/www_plugin.c b/plugins/www/www_plugin.c
index 75a836893..1cc805a80 100644
--- a/plugins/www/www_plugin.c
+++ b/plugins/www/www_plugin.c
@@ -709,7 +709,7 @@ static void remmina_plugin_www_save_snapshot(GObject *object, GAsyncResult *resu
surface = webkit_web_view_get_snapshot_finish(WEBKIT_WEB_VIEW(webview), result, &err);
if (err)
- g_error("An error happened generating the snapshot: %s\n", err->message);
+ g_warning("An error happened generating the snapshot: %s\n", err->message);
//buffer = cairo_image_surface_get_data (surface);
width = cairo_image_surface_get_width(surface);
height = cairo_image_surface_get_height(surface);
diff --git a/src/remmina_pref.c b/src/remmina_pref.c
index 4c5ea3fa0..3a36d28b2 100644
--- a/src/remmina_pref.c
+++ b/src/remmina_pref.c
@@ -814,7 +814,7 @@ gboolean remmina_pref_save(void)
if (error != NULL)
{
- g_error ("iremmina_pref_save error: %s", error->message);
+ g_warning ("remmina_pref_save error: %s", error->message);
g_clear_error (&error);
g_key_file_free(gkeyfile);
g_free(content);
diff --git a/src/rmnews.c b/src/rmnews.c
index 6b54a2dbc..a09d20061 100644
--- a/src/rmnews.c
+++ b/src/rmnews.c
@@ -144,7 +144,7 @@ static gchar *rmnews_get_file_contents(gchar *path)
if (g_file_get_contents(path, &content, &size, NULL)) {
if (!g_utf8_validate(content, size, NULL)) {
- g_error("%s content is not UTF-8", path);
+ g_warning("%s content is not UTF-8", path);
g_free(content);
}
}
@@ -293,7 +293,7 @@ static void rmnews_get_url_cb(SoupSession *session, SoupMessage *msg, gpointer d
return;
}
} else {
- g_error("Cannot open output file for writing, because output_file_path is NULL");
+ g_warning("Cannot open output file for writing, because output_file_path is NULL");
g_get_current_time(&t);
remmina_pref.periodic_rmnews_last_get = t.tv_sec;
remmina_pref_save();