Table display: print message with warning: prefix
Use the normal error functions here rather than a bare fprintf(). Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
020bdb4298
commit
842c4422ed
1 changed files with 2 additions and 1 deletions
|
@ -585,7 +585,8 @@ int table_display(const char *title, const alpm_list_t *header,
|
||||||
totalwidth = table_calc_widths(header, rows, totalcols, &widths);
|
totalwidth = table_calc_widths(header, rows, totalcols, &widths);
|
||||||
/* return -1 if terminal is not wide enough */
|
/* return -1 if terminal is not wide enough */
|
||||||
if(totalwidth > getcols()) {
|
if(totalwidth > getcols()) {
|
||||||
fprintf(stderr, _("insufficient columns available for table display\n"));
|
pm_fprintf(stderr, ALPM_LOG_WARNING,
|
||||||
|
_("insufficient columns available for table display\n"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if(!totalwidth || !widths) {
|
if(!totalwidth || !widths) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue