diff --git a/src/lib/Support/Generator.cpp b/src/lib/Support/Generator.cpp index abbbcc725..ce438f391 100644 --- a/src/lib/Support/Generator.cpp +++ b/src/lib/Support/Generator.cpp @@ -80,8 +80,7 @@ buildOne( Corpus const& corpus) const { std::string dir = files::getParentDir(fileName); - if(auto err = files::createDirectory(dir)) - return err; + MRDOCS_TRY(files::createDirectory(dir)); std::ofstream os; try