mirror of
https://github.com/NixOS/nix.git
synced 2025-12-13 04:21:04 +01:00
Improve git submodule error reporting
This commit is contained in:
parent
c257c82447
commit
6ec6b8aa36
3 changed files with 14 additions and 2 deletions
|
|
@ -220,6 +220,16 @@ std::pair<StorePath, Input> Input::fetch(ref<Store> store) const
|
|||
return {std::move(storePath), input};
|
||||
}
|
||||
|
||||
std::pair<ref<InputAccessor>, Input> Input::getAccessor(ref<Store> store) const
|
||||
{
|
||||
try {
|
||||
return scheme->getAccessor(store, *this);
|
||||
} catch (Error & e) {
|
||||
e.addTrace({}, "while fetching the input '%s'", to_string());
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
Input Input::applyOverrides(
|
||||
std::optional<std::string> ref,
|
||||
std::optional<Hash> rev) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue