From e65bdaa6b207d5cd409acaa5d0d33fe85dd7a28d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 1 Nov 2011 21:43:51 +0100 Subject: [PATCH 1/1] com_lsblob: Print an error message if no blob matched. Just to be consistent with other commands. --- blob.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2