summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrien Bustany <adrien@bustany.org>2022-08-20 23:52:48 +0200
committerAdrien Bustany <adrien@bustany.org>2022-08-20 23:52:48 +0200
commitf31d2ccea45b0fb2ca6e1932edc324a832673311 (patch)
treeeaab7bae7541511047e6a0831901dcc2add4998f
parentInitial release (diff)
downloadlcp-decrypt-master.tar
lcp-decrypt-master.tar.gz
lcp-decrypt-master.tar.bz2
lcp-decrypt-master.tar.lz
lcp-decrypt-master.tar.xz
lcp-decrypt-master.tar.zst
lcp-decrypt-master.zip
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 2e2900a..2c1608e 100644
--- a/main.go
+++ b/main.go
@@ -227,7 +227,7 @@ func getContentKey(epubRoot fs.FS, userKey []byte) ([]byte, error) {
keyCheck, err := decipher(encryptedKeyCheck, userKey)
if err != nil {
- return nil, fmt.Errorf("error decrypting key check")
+ return nil, fmt.Errorf("error decrypting key check: %w", err)
}
if string(keyCheck) != license.ID {