You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2019/01/30 22:06:50 UTC
[orc] branch master updated: ORC-466: Show `mode` for
`NoSuchPaddingException`
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/master by this push:
new 3b01b6e ORC-466: Show `mode` for `NoSuchPaddingException`
3b01b6e is described below
commit 3b01b6ed7a2fae8a41aab995f5889dfced4c3b4a
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Mon Jan 28 18:52:09 2019 -0800
ORC-466: Show `mode` for `NoSuchPaddingException`
Fixes #363.
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
java/shims/src/java/org/apache/orc/EncryptionAlgorithm.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/shims/src/java/org/apache/orc/EncryptionAlgorithm.java b/java/shims/src/java/org/apache/orc/EncryptionAlgorithm.java
index 6dbf1f2..5bdccfd 100644
--- a/java/shims/src/java/org/apache/orc/EncryptionAlgorithm.java
+++ b/java/shims/src/java/org/apache/orc/EncryptionAlgorithm.java
@@ -60,7 +60,7 @@ public enum EncryptionAlgorithm {
} catch (NoSuchAlgorithmException e) {
throw new IllegalArgumentException("Bad algorithm " + algorithm);
} catch (NoSuchPaddingException e) {
- throw new IllegalArgumentException("Bad padding " + algorithm);
+ throw new IllegalArgumentException("Bad padding " + mode);
}
}