mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Changed implementation inside __parseSettings for the certificates to throw in case of necessity
This commit is contained in:
5
index.js
5
index.js
@@ -583,7 +583,8 @@ class Pass {
|
||||
return readFile(resolvedPath);
|
||||
});
|
||||
|
||||
return Promise.all(certPaths).then(contents => {
|
||||
return Promise.all(certPaths)
|
||||
.then(contents => {
|
||||
contents.forEach((file, index) => {
|
||||
let certName = optCertsNames[index];
|
||||
let pem = parsePEM(file, options.certificates[certName].passphrase);
|
||||
@@ -594,6 +595,8 @@ class Pass {
|
||||
|
||||
this.Certificates[certName] = pem;
|
||||
});
|
||||
}).catch(err => {
|
||||
throw new Error(errors.INVALID_CERTS);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user