mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-09-28 18:49:56 +02:00
BC173: Fix CRC error detection by improving error check
This commit is contained in:
parent
46f7cfdb1a
commit
2587f19df3
|
@ -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