Commit 2bb55760 authored by Kyle Evans's avatar Kyle Evans
Browse files

only use 'error' in one place

parent 1ff53d38
Pipeline #62191 passed with stages
in 4 minutes and 22 seconds
......@@ -818,7 +818,7 @@ pur_mmsd_receive_message (GVariant *message_t)
&contents,
&length,
NULL,
&error);
NULL);
const gchar *home = g_get_home_dir ();
tag = g_strconcat (date, sender, NULL);
......@@ -828,12 +828,7 @@ pur_mmsd_receive_message (GVariant *message_t)
NULL);
g_free(tag);
if (!g_file_make_directory_with_parents (savepath, NULL, &error)) {
g_warning ("%s", error->message);
serv_got_im (pc, sender, error->message, PURPLE_MESSAGE_SYSTEM,
time (NULL));
if (!g_file_make_directory_with_parents (savepath, NULL, NULL)) {
break;
} else {
serv_got_im (pc, sender, subject, PURPLE_MESSAGE_RECV,
......@@ -851,9 +846,6 @@ pur_mmsd_receive_message (GVariant *message_t)
if (error) {
g_warning ("%s", error->message);
serv_got_im (pc, sender, error->message, PURPLE_MESSAGE_SYSTEM,
time (NULL));
break;
}
......@@ -862,13 +854,8 @@ pur_mmsd_receive_message (GVariant *message_t)
size,
&written,
NULL,
&error)) {
NULL)) {
g_warning ("attachment not saved!");
g_warning ("%s", error->message);
serv_got_im (pc, sender, error->message, PURPLE_MESSAGE_SYSTEM,
time (NULL));
}
g_output_stream_close (G_OUTPUT_STREAM(out), NULL, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment