Skip to content

Commit e899db5

Browse files
authored
Fix error output when creating directories (#561)
Signed-off-by: Michael Carroll <[email protected]>
1 parent 5b8f27f commit e899db5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Filesystem.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,11 +466,16 @@ bool common::copyDirectory(const std::string &_existingDirname,
466466
/////////////////////////////////////////////////
467467
bool common::createDirectories(const std::string &_path)
468468
{
469-
return createDirectories(_path, ignerr);
469+
std::ostringstream ss;
470+
auto ret = createDirectories(_path, ss);
471+
if (!ret)
472+
ignerr << ss.str();
473+
return ret;
470474
}
471475

472476
/////////////////////////////////////////////////
473-
bool common::createDirectories(const std::string &_path, std::ostream &_errorOut)
477+
bool common::createDirectories(
478+
const std::string &_path, std::ostream &_errorOut)
474479
{
475480
size_t index = 0;
476481
while (index < _path.size())

0 commit comments

Comments
 (0)