HTML/RSS: Log if repo couldn't be updated.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2021-01-07 16:19:56 +01:00
parent 7a9b3e92a4
commit a104beff6f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/* This file is part of FediBlock-backend.
* Copyright © 2020 tastytea <tastytea@tastytea.de>
* Copyright © 2020, 2021 tastytea <tastytea@tastytea.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@ -197,8 +197,9 @@ int main(int argc, char *argv[])
git::update_cached_repo();
remove_lockfile = true;
}
catch (const runtime_error &)
catch (const runtime_error &e)
{
cerr << "Warning: " << e.what() << '\n';
// Ignore, use old version of repo.
}
const auto entries{files::read_json_files(true)};

View File

@ -1,5 +1,5 @@
/* This file is part of FediBlock-backend.
* Copyright © 2020 tastytea <tastytea@tastytea.de>
* Copyright © 2020, 2021 tastytea <tastytea@tastytea.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@ -216,8 +216,9 @@ int main(int /*argc*/, char * /*argv*/[])
git::update_cached_repo();
remove_lockfile = true;
}
catch (const runtime_error &)
catch (const runtime_error &e)
{
cerr << "Warning: " << e.what() << '\n';
// Ignore, use old version of repo.
}
const auto entries{files::read_json_files(true)};