[Pkg-javascript-commits] [node-cipher-base] 10/18: Update error messages
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Apr 20 19:25:25 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-cipher-base.
commit dc19a24119786518c1c835d948e36ddae3bf3adb
Author: Zhulduz Zhankenova <zhulduz.zhankenova at crystalnix.com>
Date: Thu Oct 22 09:58:26 2015 +0600
Update error messages
---
index.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index 33e9e1e..34fcae2 100644
--- a/index.js
+++ b/index.js
@@ -31,15 +31,15 @@ CipherBase.prototype.update = function (data, inputEnc, outputEnc) {
CipherBase.prototype.setAutoPadding = function () {}
CipherBase.prototype.getAuthTag = function () {
- throw new Error('Subclasses should implement this')
+ throw new Error('trying to get auth tag in unsupported state')
}
CipherBase.prototype.setAuthTag = function () {
- throw new Error('Subclasses should implement this')
+ throw new Error('trying to set auth tag in unsupported state')
}
CipherBase.prototype.setAAD = function () {
- throw new Error('Subclasses should implement this')
+ throw new Error('trying to set aad in unsupported state')
}
CipherBase.prototype._transform = function (data, _, next) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cipher-base.git
More information about the Pkg-javascript-commits
mailing list