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(); 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;