avoid exceptions
This commit is contained in:
@ -12,7 +12,8 @@
|
||||
*/
|
||||
int main() {
|
||||
std::cout << "Starting OBSW watchdog" << std::endl;
|
||||
if (std::filesystem::exists(watchdog::RUNNING_FILE_NAME)) {
|
||||
std::error_code e;
|
||||
if (std::filesystem::exists(watchdog::RUNNING_FILE_NAME, e)) {
|
||||
std::cout << "Removing " << watchdog::RUNNING_FILE_NAME << std::endl;
|
||||
int result = std::remove(watchdog::RUNNING_FILE_NAME.c_str());
|
||||
if (result != 0) {
|
||||
|
Reference in New Issue
Block a user