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-f31d2ccea45b0fb2ca6e1932edc324a832673311.tar
lcp-decrypt-f31d2ccea45b0fb2ca6e1932edc324a832673311.tar.gz
lcp-decrypt-f31d2ccea45b0fb2ca6e1932edc324a832673311.tar.bz2
lcp-decrypt-f31d2ccea45b0fb2ca6e1932edc324a832673311.tar.lz
lcp-decrypt-f31d2ccea45b0fb2ca6e1932edc324a832673311.tar.xz
lcp-decrypt-f31d2ccea45b0fb2ca6e1932edc324a832673311.tar.zst
lcp-decrypt-f31d2ccea45b0fb2ca6e1932edc324a832673311.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 {