Fix path display

This commit is contained in:
Eelco Dolstra 2022-07-22 15:11:15 +02:00
parent 7edacb6248
commit c73a7584fb

View file

@ -118,7 +118,7 @@ struct FSInputAccessorImpl : FSInputAccessor
, allowedPaths(std::move(allowedPaths))
, makeNotAllowedError(std::move(makeNotAllowedError))
{
displayPrefix = root.abs();
displayPrefix = root.isRoot() ? "" : root.abs();
}
std::string readFile(const CanonPath & path) override