mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-22 20:32:05 +01:00
BC173: Fix CRC error detection by improving error check
This commit is contained in:
parent
46f7cfdb1a
commit
2587f19df3
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ public class TeeBCPGInputStream {
|
||||||
last = inputStream.read();
|
last = inputStream.read();
|
||||||
return last;
|
return last;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
if ("crc check failed in armored message.".equals(e.getMessage())) {
|
if (e.getMessage().contains("crc check failed in armored message")) {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue