Do not print stacktrace on PUT request (#13)

This commit is contained in:
Stefan Kalscheuer 2017-08-18 20:58:25 +02:00
parent 23f98f190b
commit c8a2e0784f

View File

@ -732,7 +732,7 @@ public class HTTPVaultConnector implements VaultConnector {
try { try {
entity = new StringEntity(jsonMapper.writeValueAsString(payload)); entity = new StringEntity(jsonMapper.writeValueAsString(payload));
} catch (UnsupportedEncodingException | JsonProcessingException e) { } catch (UnsupportedEncodingException | JsonProcessingException e) {
e.printStackTrace(); throw new InvalidRequestException("Payload serialization failed", e);
} }
/* Parse parameters */ /* Parse parameters */
put.setEntity(entity); put.setEntity(entity);