0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 08:23:56 +01:00

ircd::fs: Add path to error message thrown from ls() et al.

This commit is contained in:
Jason Volk 2018-12-08 15:43:59 -08:00
parent 8739ef90ce
commit 313bffffc2

View file

@ -200,7 +200,15 @@ try
}
catch(const filesystem::filesystem_error &e)
{
throw error{e};
const auto &ec
{
make_error_code(e.code())
};
throw error
{
e, "`%s': %s", path, ec.message()
};
}
std::vector<std::string>
@ -224,7 +232,15 @@ try
}
catch(const filesystem::filesystem_error &e)
{
throw error{e};
const auto &ec
{
make_error_code(e.code())
};
throw error
{
e, "`%s': %s", path, ec.message()
};
}
size_t