Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion libs/linglong/src/linglong/builder/linglong_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,13 @@ utils::error::Result<void> Builder::cleanBuildArtifacts() noexcept
LINGLONG_TRACE("clean build artifacts");

std::error_code ec;
if (!std::filesystem::exists(this->internalDir, ec)) {
auto exists = std::filesystem::exists(this->internalDir, ec);
if (ec) {
return LINGLONG_ERR(fmt::format("failed to check build artifacts directory {}: {}",
this->internalDir.string(),
ec.message()));
}
if (!exists) {
return LINGLONG_OK;
}

Expand Down
Loading