mirror of
https://github.com/revanced/jadb.git
synced 2024-06-02 11:26:12 +02:00
The error message is now included in the thrown exception.
This commit is contained in:
parent
a872b5413e
commit
5723a7ce27
|
@ -31,7 +31,11 @@ class Transport {
|
|||
|
||||
public void verifyResponse() throws IOException, JadbException {
|
||||
String response = readString(4);
|
||||
if ("OKAY".equals(response) == false) throw new JadbException("command failed");
|
||||
if ("OKAY".equals(response) == false)
|
||||
{
|
||||
String error = readString();
|
||||
throw new JadbException("command failed: " + error);
|
||||
}
|
||||
}
|
||||
|
||||
public String readString(int length) throws IOException {
|
||||
|
|
Loading…
Reference in New Issue
Block a user