Commit 94c2e7cb authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

matrix-api: show error logs on common errors

I often need this for debugging especially on network
failures
parent 104608be
......@@ -472,6 +472,8 @@ handle_common_errors (MatrixApi *self,
if (!error)
return FALSE;
CHATTY_TRACE_MSG ("Error: %s", error->message);
if (g_error_matches (error, MATRIX_ERROR, M_UNKNOWN_TOKEN)
&& self->password) {
CHATTY_TRACE_MSG ("Re-logging in %s", self->username);
......
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