From ece7e7d8b9352c84cf18b3afbbcc0a73cf1f00c2 Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Fri, 22 Nov 2024 13:30:52 -0300 Subject: [PATCH] fix(Generator): propagate createDirectory error --- src/lib/Support/Generator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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