mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix libgit2 error details not being logged
This commit is contained in:
@@ -102,7 +102,9 @@ void GitHelper::Call(int error_code) {
|
||||
giterr_clear();
|
||||
|
||||
if (errorMessage_.empty())
|
||||
errorMessage_ = (boost::format("Git operation failed. Error: %1%") % gitError).str();
|
||||
errorMessage_ = "Git operation failed.";
|
||||
|
||||
errorMessage_ = (boost::format("%1% Details: %2%") % errorMessage_ % gitError).str();
|
||||
|
||||
throw std::system_error(error_code, libgit2_category(), errorMessage_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user