- } catch (IOException | UntrustedIdentityException e) {
- throw new UserErrorException("Failed to send message: " + e.getMessage());
- } catch (InvalidNumberException e) {
- throw new UserErrorException("Invalid number: " + e.getMessage());
+ outputResult(outputWriter, results);
+ } catch (IOException e) {
+ throw new UserErrorException("Failed to send message: " + e.getMessage() + " (" + e.getClass()
+ .getSimpleName() + ")");