summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-crypt
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-22 13:56:16 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-22 13:56:16 -0400
commit1df0518c9cdae1fd555c5871b3f33bb5c2768d82 (patch)
tree8f1ef5cbfdc37d2916e59ca4309868fd1e3473a7 /src/sbin/bcfg2-crypt
parent986217efa0794b608be70a53c2f83c312ae14665 (diff)
downloadbcfg2-1df0518c9cdae1fd555c5871b3f33bb5c2768d82.tar.gz
bcfg2-1df0518c9cdae1fd555c5871b3f33bb5c2768d82.tar.bz2
bcfg2-1df0518c9cdae1fd555c5871b3f33bb5c2768d82.zip
bcfg2-crypt: improved error message
Diffstat (limited to 'src/sbin/bcfg2-crypt')
-rwxr-xr-xsrc/sbin/bcfg2-crypt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-crypt b/src/sbin/bcfg2-crypt
index 873d3564e..0693b430c 100755
--- a/src/sbin/bcfg2-crypt
+++ b/src/sbin/bcfg2-crypt
@@ -50,7 +50,7 @@ class Encryptor(object):
try:
return data[0]
except IndexError:
- raise EncryptionChunkingError
+ raise EncryptionChunkingError("No data to unchunk")
def set_passphrase(self):
""" set the passphrase for the current file """