HTML/RSS: Log if repo couldn't be updated.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7a9b3e92a4
commit
a104beff6f
|
@ -1,5 +1,5 @@
|
||||||
/* This file is part of FediBlock-backend.
|
/* 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
|
* 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
|
* 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();
|
git::update_cached_repo();
|
||||||
remove_lockfile = true;
|
remove_lockfile = true;
|
||||||
}
|
}
|
||||||
catch (const runtime_error &)
|
catch (const runtime_error &e)
|
||||||
{
|
{
|
||||||
|
cerr << "Warning: " << e.what() << '\n';
|
||||||
// Ignore, use old version of repo.
|
// Ignore, use old version of repo.
|
||||||
}
|
}
|
||||||
const auto entries{files::read_json_files(true)};
|
const auto entries{files::read_json_files(true)};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* This file is part of FediBlock-backend.
|
/* 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
|
* 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
|
* 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();
|
git::update_cached_repo();
|
||||||
remove_lockfile = true;
|
remove_lockfile = true;
|
||||||
}
|
}
|
||||||
catch (const runtime_error &)
|
catch (const runtime_error &e)
|
||||||
{
|
{
|
||||||
|
cerr << "Warning: " << e.what() << '\n';
|
||||||
// Ignore, use old version of repo.
|
// Ignore, use old version of repo.
|
||||||
}
|
}
|
||||||
const auto entries{files::read_json_files(true)};
|
const auto entries{files::read_json_files(true)};
|
||||||
|
|
Reference in New Issue