improve error message (#5161)
My JAVA skills are minor and I can't compile it yet in my environment, hence this is a test only
This commit is contained in:
parent
fca9f93fa2
commit
da0eba081e
|
@ -202,8 +202,11 @@ public class BinaryProtocol {
|
|||
}
|
||||
int actualVersion = FileUtil.littleEndianWrap(response, 1, requestSize).getInt();
|
||||
if (actualVersion != TS_FILE_VERSION) {
|
||||
log.error("Got TS_CONFIG_VERSION " + actualVersion);
|
||||
return "Incompatible firmware format=" + actualVersion + " while format " + TS_FILE_VERSION + " expected";
|
||||
String errorMessage =
|
||||
"Incompatible firmware format=" + actualVersion + " while format " + TS_FILE_VERSION + " expected" + "\n"
|
||||
+ "recommended fix: use a compatible console version OR flash new firmware";
|
||||
log.error(errorMessage);
|
||||
return errorMessage;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue