Skip to content

Commit

Permalink
Improve error messages on scan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlStraussberger committed Oct 6, 2023
1 parent 5aef816 commit fd3c5ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content/autoscan_inotify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ void AutoscanInotify::monitorUnmonitorRecursive(const fs::directory_entry& start
}

if (ec) {
log_error("monitorUnmonitorRecursive: Failed to read {}, {}", dirEnt.path().c_str(), ec.message());
log_error("AutoscanInotify::monitorUnmonitorRecursive {}: Failed to read {}, {}", startPath.path().c_str(), dirEnt.path().c_str(), ec.message());
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/content/content_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ void ContentManager::_rescanDirectory(const std::shared_ptr<AutoscanDirectory>&
}
}
if (ec) {
log_error("_rescanDirectory: Failed to read {}, {}", newPath.c_str(), ec.message());
log_error("ContentManager::_rescanDirectory {}: Failed to read {}, {}", location.c_str(), newPath.c_str(), ec.message());
}
} // dIter

Expand Down

0 comments on commit fd3c5ab

Please sign in to comment.