aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-ar/llvm-ar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-ar/llvm-ar.cpp')
-rw-r--r--tools/llvm-ar/llvm-ar.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp
index 586639b..1755e18 100644
--- a/tools/llvm-ar/llvm-ar.cpp
+++ b/tools/llvm-ar/llvm-ar.cpp
@@ -679,10 +679,11 @@ int main(int argc, char **argv) {
} else {
std::string Error;
TheArchive = Archive::OpenAndLoad(ArchivePath, &Error);
- if (TheArchive == 0)
+ if (TheArchive == 0) {
std::cerr << argv[0] << ": error loading '" << ArchivePath << "': "
<< Error << "!\n";
- return 1;
+ return 1;
+ }
}
// Make sure we're not fooling ourselves.