Bug #52214 Misleading error msg when test fails before having produced any query
output Print error message only if real error
This commit is contained in:
parent
5a5cbff970
commit
d5e9a45efd
@ -610,8 +610,11 @@ public:
|
|||||||
|
|
||||||
if ((bytes= fread(buf, 1, sizeof(buf), m_file)) <= 0)
|
if ((bytes= fread(buf, 1, sizeof(buf), m_file)) <= 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Failed to read from '%s', errno: %d\n",
|
// ferror=0 will happen here if no queries executed yet
|
||||||
m_file_name, errno);
|
if (ferror(m_file))
|
||||||
|
fprintf(stderr,
|
||||||
|
"Failed to read from '%s', errno: %d, feof:%d, ferror:%d\n",
|
||||||
|
m_file_name, errno, feof(m_file), ferror(m_file));
|
||||||
DBUG_VOID_RETURN;
|
DBUG_VOID_RETURN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user