Skip to content

Commit daca207

Browse files
knizhnikgsmolk
authored andcommitted
Report ssh error if available
1 parent 6a721aa commit daca207

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/utils/file.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ void fio_error(int rc, int size, char const* file, int line)
5858
char buf[PRINTF_BUF_SIZE];
5959
int err_size = read(fio_stderr, buf, sizeof(buf));
6060
if (err_size > 0)
61-
elog(LOG, "Agent error: %s", buf);
62-
elog(ERROR, "Communication error: %s", rc >= 0 ? "end of data" : strerror(errno));
61+
elog(ERROR, "Agent error: %s", buf);
62+
else
63+
elog(ERROR, "Communication error: %s", rc >= 0 ? "end of data" : strerror(errno));
6364
}
6465
}
6566

0 commit comments

Comments
 (0)