Compare commits

...

2 Commits

Author SHA1 Message Date
PavlNekrasov ff0877b6c9
Merge 6198025194 into 37c2010bcf 2024-09-16 00:12:13 +08:00
PavlNekrasov 6198025194
Use correct error code in log message in output_waiting_jobs
The error code `r` from the read function is being logged, but the error code `rc` from the table data insertion function should be logged instead.
2024-09-13 17:57:24 +03:00
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ static int output_waiting_jobs(sd_bus *bus, Table *table, uint32_t id, const cha
TABLE_EMPTY,
TABLE_EMPTY);
if (rc < 0)
return table_log_add_error(r);
return table_log_add_error(rc);
}
if (r < 0)