1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "lix/libstore/log-store.hh"
namespace nix {
kj::Promise<Result<std::optional<std::string>>> LogStore::getBuildLog(const StorePath & path)
try {
auto maybePath = TRY_AWAIT(getBuildDerivationPath(path));
if (!maybePath)
co_return std::nullopt;
co_return TRY_AWAIT(getBuildLogExact(maybePath.value()));
} catch (...) {
co_return result::current_exception();
}
}
|