small fix
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-06-25 10:24:27 +02:00
parent d95ecc3678
commit d88ffb1734
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -1602,7 +1602,7 @@ void CoreController::performRebootWatchdogHandling(bool recreateFile) {
std::string legacyPath = currMntPrefix + LEGACY_REBOOT_WATCHDOG_FILE;
std::error_code e;
// TODO: Remove at some point in the future.
if (std::filesystem::exists(legacyPath)) {
if (std::filesystem::exists(legacyPath, e)) {
// Old file might still exist, so copy it to new path
std::filesystem::copy(legacyPath, path, std::filesystem::copy_options::overwrite_existing, e);
if (e) {