Fix function name for logger warning

This commit is contained in:
2019-04-05 16:03:48 +02:00
parent d854b4e0fb
commit 7056772066

View File

@@ -29,7 +29,7 @@ module.exports = async function(robot) {
try { try {
wallet = await ethers.Wallet.fromEncryptedJson(walletJson, process.env.KREDITS_WALLET_PASSWORD); wallet = await ethers.Wallet.fromEncryptedJson(walletJson, process.env.KREDITS_WALLET_PASSWORD);
} catch(error) { } catch(error) {
robot.logger.warn('[hubot-kredits] Could not load wallet:', error); robot.logger.warning('[hubot-kredits] Could not load wallet:', error);
process.exit(1); process.exit(1);
} }
@@ -49,7 +49,7 @@ module.exports = async function(robot) {
try { try {
kredits = await new Kredits(ethProvider, wallet, ipfsConfig).init(); kredits = await new Kredits(ethProvider, wallet, ipfsConfig).init();
} catch(error) { } catch(error) {
robot.logger.warn('[hubot-kredits] Could not set up kredits:', error); robot.logger.warning('[hubot-kredits] Could not set up kredits:', error);
process.exit(1); process.exit(1);
} }
const Contributor = kredits.Contributor; const Contributor = kredits.Contributor;