aboutsummaryrefslogtreecommitdiff
path: root/src/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch.c')
-rw-r--r--src/fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fetch.c b/src/fetch.c
index 87c632d..3792a5e 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -51,7 +51,7 @@
bool fetch(package_t *pkg) {
if (pkg->url.data == NULL || pkg->src.data == NULL) {
- log_warn("invalid pkg: url or src is NULL");
+ if (flags.verbose) log_warn("invalid pkg: url or src is NULL");
return false;
}
@@ -97,7 +97,7 @@ bool fetch(package_t *pkg) {
waitpid(pid, &status, 0);
bool result = (WEXITSTATUS(status) == 0);
- if (!result) { log_warn("git clone failed"); }
+ if (!result) { log_error("git clone failed"); }
return result;
}