Minor changes to READMEs and core

This commit is contained in:
Alexander Cerutti
2018-12-11 21:25:30 +01:00
parent 96e2b628fe
commit 92fc5f8264
3 changed files with 6 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<div align="center">
<br>
<br>
<img width="600" src="assets/logo.svg" alt="Node Passkit Generator logo">
<img width="600" src="assets/logo.svg?sanitize=true" alt="Node Passkit Generator logo">
<br>
<br>
<p align="center">Simple Node.js interface to generate customized <a href="https://developer.apple.com/wallet/">Apple Wallet Passes</a> for iOS.</p>

View File

@@ -88,6 +88,6 @@ But let's not talk anymore about testing and let's go with the steps to follow.
$ openssl rsa -in <your-key-name>.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.

View File

@@ -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));
});
}