1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 13:11:00 +01:00

Change error type

This commit is contained in:
Josh Spence 2025-07-09 18:09:34 +10:00
parent 1ae00a5657
commit d62f504799

View file

@ -725,7 +725,7 @@ struct GitSourceAccessor : SourceAccessor
const git_error *e = git_error_last();
std::string errorMsg = e ? e->message : "Unknown error";
git_buf_dispose(&filtered);
throw std::runtime_error("Failed to filter blob: " + errorMsg);
throw Error("Failed to filter blob: " + errorMsg);
}
std::string result(filtered.ptr, filtered.size);
git_buf_dispose(&filtered);