From 92fc5f8264e14f89bfff039dc7985493b74d5c7b Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Tue, 11 Dec 2018 21:25:30 +0100 Subject: [PATCH] Minor changes to READMEs and core --- README.md | 2 +- non-macOS-steps.md | 2 +- src/pass.js | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b2d98ba..2958117 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@


- Node Passkit Generator logo + Node Passkit Generator logo

Simple Node.js interface to generate customized Apple Wallet Passes for iOS.

diff --git a/non-macOS-steps.md b/non-macOS-steps.md index 05451e0..3b8aa91 100644 --- a/non-macOS-steps.md +++ b/non-macOS-steps.md @@ -88,6 +88,6 @@ But let's not talk anymore about testing and let's go with the steps to follow. $ openssl rsa -in .key -outform PEM -out passkey.pem ``` -12. Execute Step 10 also for `AppleWWDRCA.cer` you've download from [Apple PKI](https://www.apple.com/certificateauthority/) and save it somewhere (over the rainbow... 🌈). +12. Execute Step 9 also for `AppleWWDRCA.cer` you've download from [Apple PKI](https://www.apple.com/certificateauthority/) and save it somewhere (over the rainbow... 🌈). 13. And you are done. 🎉 Now try to create your first pass! My suggestion is to keep anyway the `.key` file somewhere as backup (this time not over the rainbow). You can always download `.cer` file from APP, but you cannot generate back your private key. diff --git a/src/pass.js b/src/pass.js index c22f991..a6cfe2c 100644 --- a/src/pass.js +++ b/src/pass.js @@ -721,10 +721,12 @@ class Pass { }); }).catch(err => { if (!err.path) { + // Catching error from '.then()'; + console.log("Got an error"); throw err; - } else { - throw new Error(formatError("INVALID_CERT_PATH", path.parse(err.path).base)); } + + throw new Error(formatError("INVALID_CERT_PATH", path.parse(err.path).base)); }); }