Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07547144 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add context to error message."

parents 18b48023 93aa95f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -349,7 +349,7 @@ Maybe<std::vector<std::string>> FindFiles(const android::StringPiece& path, IDia
  const std::string root_dir = path.to_string();
  std::unique_ptr<DIR, decltype(closedir)*> d(opendir(root_dir.data()), closedir);
  if (!d) {
    diag->Error(DiagMessage() << SystemErrorCodeToString(errno));
    diag->Error(DiagMessage() << SystemErrorCodeToString(errno) << ": " << root_dir);
    return {};
  }