[PATCH] D65704: DirectoryWatcher::create: Adding better error handling.
    Jan Korous via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon Aug  5 17:20:38 PDT 2019
    
    
  
jkorous added a comment.
Please just update the comment, otherwise LGTM.
================
Comment at: clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp:283
       /*waitForInitialSync=*/true);
+  if (!DW) return;
 
----------------
jkorous wrote:
> IIUC this is silently dropping errors. We should print the error here.
Ah, my bad - I just took a better look at `Expected<>` and you're right.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65704/new/
https://reviews.llvm.org/D65704
    
    
More information about the cfe-commits
mailing list