Files
ctpv/error.c
Nikita Ivanov 2b7d50e914 Minor
2022-06-08 15:26:14 +05:00

19 lines
386 B
C

#include <stdio.h>
#include "error.h"
#include "utils.h"
void print_error(const char *error_msg)
{
/* We print errors to stdout because lf file manager
* doesn't print stderr in the preview window. */
fprintf(stdout, "%s: %s\n", program, error_msg);
}
void print_errorf(const char *format, ...)
{
char s[1024];
FORMATTED_STRING(s, format);
print_error(s);
}