- get rid of a couple of warnings when building for debian
[platform/upstream/libsolv.git] / tools / mergesolv.c
index 0d6075c..8ff4857 100644 (file)
@@ -94,7 +94,11 @@ main(int argc, char **argv)
          perror(argv[optind]);
          exit(1);
        }
-      repo_add_solv(repo, fp, 0);
+      if (repo_add_solv(repo, fp, 0))
+       {
+         fprintf(stderr, "repo %s: %s\n", argv[optind], pool_errstr(pool));
+         exit(1);
+       }
       fclose(fp);
     }
   tool_write(repo, basefile, 0);