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 {
entity = new StringEntity(jsonMapper.writeValueAsString(payload));
} catch (UnsupportedEncodingException | JsonProcessingException e) {
e.printStackTrace();
throw new InvalidRequestException("Payload serialization failed", e);
}
/* Parse parameters */
put.setEntity(entity);