Fix CI errors on macOS & Windows

- Run the linter
- Explicitly use cmake for installing olm
This commit is contained in:
Konstantinos Sideris 2018-06-14 09:36:41 +03:00
parent 8e9d210a2a
commit 7fc010fc4f
3 changed files with 9 additions and 8 deletions

View file

@ -1,5 +1,5 @@
#include "Cache.h"
#include "CommunitiesList.h"
#include "Cache.h"
#include "Logging.hpp"
#include "MatrixClient.h"
@ -137,9 +137,9 @@ CommunitiesList::fetchCommunityAvatar(const QString &id, const QString &avatarUr
opts, [this, opts, id](const std::string &res, mtx::http::RequestErr err) {
if (err) {
nhlog::net()->warn("failed to download avatar: {} - ({} {})",
opts.mxc_url,
mtx::errors::to_string(err->matrix_error.errcode),
err->matrix_error.error);
opts.mxc_url,
mtx::errors::to_string(err->matrix_error.errcode),
err->matrix_error.error);
return;
}

View file

@ -248,7 +248,7 @@ RegisterPage::onRegisterButtonClicked()
}
nhlog::net()->warn("failed to register: status_code ({})",
static_cast<int>(err->status_code));
static_cast<int>(err->status_code));
emit registerErrorCb(QString::fromStdString(err->matrix_error.error));
emit errorOccurred();