We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16a3415 commit 3639d08Copy full SHA for 3639d08
src/bin/pg_dump/filter.c
@@ -161,10 +161,12 @@ pg_log_filter_error(FilterStateData *fstate, const char *fmt,...)
161
vsnprintf(buf, sizeof(buf), fmt, argp);
162
va_end(argp);
163
164
- pg_log_error("invalid format in filter read from \"%s\" on line %d: %s",
165
- (fstate->fp == stdin ? "stdin" : fstate->filename),
166
- fstate->lineno,
167
- buf);
+ if (fstate->fp == stdin)
+ pg_log_error("invalid format in filter read from standard input on line %d: %s",
+ fstate->lineno, buf);
+ else
168
+ pg_log_error("invalid format in filter read from file \"%s\" on line %d: %s",
169
+ fstate->filename, fstate->lineno, buf);
170
}
171
172
/*
0 commit comments