Skip to content

Commit 732526f

Browse files
authored
Log if a package cannot be installed (#236)
* Log if a package cannot be installed * Log if a package cannot be installed * Log if a package cannot be installed
1 parent 6af9019 commit 732526f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/clib-install.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,10 @@ static int install_package(const char *slug) {
343343
static int install_packages(int n, char *pkgs[]) {
344344
for (int i = 0; i < n; i++) {
345345
debug(&debugger, "install %s (%d)", pkgs[i], i);
346-
if (-1 == install_package(pkgs[i]))
346+
if (-1 == install_package(pkgs[i])) {
347+
logger_error("error", "Unable to install package %s", pkgs[i]);
347348
return 1;
349+
}
348350
}
349351
return 0;
350352
}

0 commit comments

Comments
 (0)