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:
parent
1ae00a5657
commit
d62f504799
1 changed files with 1 additions and 1 deletions
|
|
@ -725,7 +725,7 @@ struct GitSourceAccessor : SourceAccessor
|
||||||
const git_error *e = git_error_last();
|
const git_error *e = git_error_last();
|
||||||
std::string errorMsg = e ? e->message : "Unknown error";
|
std::string errorMsg = e ? e->message : "Unknown error";
|
||||||
git_buf_dispose(&filtered);
|
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);
|
std::string result(filtered.ptr, filtered.size);
|
||||||
git_buf_dispose(&filtered);
|
git_buf_dispose(&filtered);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue