1
0
Fork 0
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:
Paul Schaub 2023-04-09 18:49:20 +02:00
parent 46f7cfdb1a
commit 2587f19df3
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -120,7 +120,7 @@ public class TeeBCPGInputStream {
last = inputStream.read();
return last;
} 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;
}
return -1;