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:
parent
8739ef90ce
commit
313bffffc2
1 changed files with 18 additions and 2 deletions
20
ircd/fs.cc
20
ircd/fs.cc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue