diff --git a/tools/pom.xml b/tools/pom.xml index dbc0dec8..c6c7eb68 100644 --- a/tools/pom.xml +++ b/tools/pom.xml @@ -33,19 +33,6 @@ - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - true - true - - - org.apache.maven.plugins maven-shade-plugin diff --git a/tools/src/main/java/com/google/bitcoin/tools/PaymentProtocol.java b/tools/src/main/java/com/google/bitcoin/tools/PaymentProtocol.java index 55b29a61..911ad2d2 100644 --- a/tools/src/main/java/com/google/bitcoin/tools/PaymentProtocol.java +++ b/tools/src/main/java/com/google/bitcoin/tools/PaymentProtocol.java @@ -71,7 +71,9 @@ public class PaymentProtocol { } output.append(format("%n%n%s%n%s", session.getPaymentRequest(), session.getPaymentDetails())); System.out.println(output); - } catch (URISyntaxException | BitcoinURIParseException e) { + } catch (URISyntaxException e) { + System.err.println("Could not parse URI: " + e.getMessage()); + } catch (BitcoinURIParseException e) { System.err.println("Could not parse URI: " + e.getMessage()); } catch (PaymentRequestException e) { System.err.println("Could not handle payment URL: " + e.getMessage());