only:details into error message

This commit is contained in:
rusefillc 2025-01-02 19:12:26 -05:00 committed by rusefillc
parent 8d85a67330
commit 61043dab0e
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ public class BinaryProtocol {
if (!checkResponseCode(response) || response.length != requestSize + 1) {
if (extractCode(response) == TS_RESPONSE_OUT_OF_RANGE) {
throw new IllegalStateException("TS_RESPONSE_OUT_OF_RANGE ECU/console version mismatch?");
throw new IllegalStateException("TS_RESPONSE_OUT_OF_RANGE ECU/console version mismatch? " + offset + "/" + requestSize);
}
String code = (response == null || response.length == 0) ? "empty" : "ERROR_CODE=" + getCode(response);
String info = response == null ? "NO RESPONSE" : (code + " length=" + response.length);