userdbctl homectl use table_log_add_error()

Signed-off-by: fangxiuning <fangxiuning123@126.com>
This commit is contained in:
fangxiuning
2020-07-06 21:32:22 +08:00
parent a64911f9b7
commit f987a261b4
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -1666,7 +1666,7 @@ static int context_dump_partitions(Context *context, const char *node) {
TABLE_UINT64, p->new_padding,
TABLE_STRING, padding_change, TABLE_SET_COLOR, !p->partitions_next && sum_padding > 0 ? ansi_underline() : NULL);
if (r < 0)
return log_error_errno(r, "Failed to add row to table: %m");
return table_log_add_error(r);
}
if (sum_padding > 0 || sum_size > 0) {
@@ -1689,7 +1689,7 @@ static int context_dump_partitions(Context *context, const char *node) {
TABLE_EMPTY,
TABLE_STRING, b);
if (r < 0)
return log_error_errno(r, "Failed to add row to table: %m");
return table_log_add_error(r);
}
r = table_print(t, stdout);