зеркало из https://github.com/mozilla/fxa.git
Fix incorrect log messages - issue mozilla/fxa-auth-server#12
This commit is contained in:
Родитель
fa15f39031
Коммит
37c7b18660
|
@ -32,7 +32,7 @@ require("jwcrypto/lib/algs/rs");
|
|||
try {
|
||||
assert(fs.existsSync(configDir), "Config dir" + configDir + " not found");
|
||||
assert(! fs.existsSync(pubKeyFile), "public key file: ["+pubKeyFile+"] already exists");
|
||||
assert(! fs.existsSync(secretKeyFile), "public key file: ["+secretKeyFile+"] already exists");
|
||||
assert(! fs.existsSync(secretKeyFile), "secret key file: ["+secretKeyFile+"] already exists");
|
||||
} catch(e) {
|
||||
console.error("Error: " + e.message);
|
||||
process.exit(1);
|
||||
|
@ -55,6 +55,6 @@ jwcrypto.generateKeypair(
|
|||
console.log("Public Key saved:", pubKeyFile);
|
||||
|
||||
fs.writeFileSync(secretKeyFile, secretKey);
|
||||
console.log("Secret Key saved:", pubKeyFile);
|
||||
console.log("Secret Key saved:", secretKeyFile);
|
||||
}
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче