Commit 7db74323 authored by Gabriel Ivascu's avatar Gabriel Ivascu

sync-service: Fix sign in error report when registering device

parent 963d2a4f
......@@ -2274,9 +2274,8 @@ register_device_cb (SoupSession *session,
if (msg->status_code != 200) {
g_warning ("Failed to register device. Status code: %u, response: %s",
msg->status_code, msg->response_body->data);
ephy_sync_service_report_sign_in_error (self,
_("Failed to register device."),
NULL, TRUE);
if (self->is_signing_in)
ephy_sync_service_report_sign_in_error (self, _("Failed to register device."), NULL, TRUE);
} else {
LOG ("Successfully registered device");
if (self->is_signing_in)
......
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