From: Andre Noll Date: Tue, 1 Nov 2011 20:43:51 +0000 (+0100) Subject: com_lsblob: Print an error message if no blob matched. X-Git-Tag: v0.4.9~3^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e65bdaa6b207d5cd409acaa5d0d33fe85dd7a28d;p=paraslash.git com_lsblob: Print an error message if no blob matched. Just to be consistent with other commands. --- diff --git a/blob.c b/blob.c index b1d55224..2545aea9 100644 --- a/blob.c +++ b/blob.c @@ -156,6 +156,8 @@ static void com_lsblob_callback(struct osl_table *table, ret = for_each_matching_row(&pmd); if (ret < 0) para_printf(&lbad.pb, "%s\n", para_strerror(-ret)); + else if (pmd.num_matches == 0 && pmd.patterns.size > 0) + para_printf(&lbad.pb, "no matches\n"); if (lbad.pb.offset) pass_buffer_as_shm(lbad.pb.buf, lbad.pb.offset, &fd); free(lbad.pb.buf);