Skip to content

Commit d363c55

Browse files
committed
qt: extended read error message
1 parent 1b45988 commit d363c55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qt/programmer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ int Programmer::readChip(uint8_t *buf, uint32_t addr, uint32_t len)
294294
ret -= sizeof(RespHeader);
295295
if (dataResp->info != ret)
296296
{
297-
qCritical() << "Programmer returns only part of data: " << ret
298-
<< "Bytes";
297+
qCritical() << "Programmer error: expected to receive " <<
298+
dataResp->info << "but received" << ret << "Bytes";
299299
return -1;
300300
}
301301

0 commit comments

Comments
 (0)