From d8aedafb57df925ebd97bf45b1bf3feba6161d9c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 10 Jan 2020 18:23:20 +0900 Subject: [PATCH] format-table: add table_log_add_error() --- src/shared/format-table.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/format-table.h b/src/shared/format-table.h index b23e4de99d0..60af0a96d4b 100644 --- a/src/shared/format-table.h +++ b/src/shared/format-table.h @@ -118,3 +118,6 @@ const void *table_get_at(Table *t, size_t row, size_t column); int table_to_json(Table *t, JsonVariant **ret); int table_print_json(Table *t, FILE *f, JsonFormatFlags json_flags); + +#define table_log_add_error(r) \ + log_error_errno(r, "Failed to add cell(s) to table: %m")