detailed error message
This commit is contained in:
parent
008e8d55c1
commit
bd2f4736fa
|
@ -319,7 +319,7 @@ static void handleGetStructContent(ts_channel_s *tsChannel, int structId, int si
|
|||
// Returns true if an overrun would occur.
|
||||
static bool validateOffsetCount(size_t offset, size_t count, ts_channel_s *tsChannel) {
|
||||
if (offset + count > getTunerStudioPageSize()) {
|
||||
scheduleMsg(&tsLogger, "TS: Project mismatch? Too much data requested %d/%d", offset, count);
|
||||
scheduleMsg(&tsLogger, "TS: Project mismatch? Too much configuration requested %d/%d", offset, count);
|
||||
tunerStudioError("ERROR: out of range");
|
||||
sendErrorCode(tsChannel);
|
||||
return true;
|
||||
|
@ -648,7 +648,8 @@ void handleQueryCommand(ts_channel_s *tsChannel, ts_response_format_e mode) {
|
|||
*/
|
||||
static void handleOutputChannelsCommand(ts_channel_s *tsChannel, ts_response_format_e mode, uint16_t offset, uint16_t count) {
|
||||
if (offset + count > sizeof(TunerStudioOutputChannels)) {
|
||||
scheduleMsg(&tsLogger, "TS: Version Mismatch? Too much data requested %d+%d", offset, count);
|
||||
scheduleMsg(&tsLogger, "TS: Version Mismatch? Too much outpus requested %d/%d/%d", offset, count,
|
||||
sizeof(TunerStudioOutputChannels));
|
||||
sendErrorCode(tsChannel);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue