Fix function name for logger warning
This commit is contained in:
parent
d854b4e0fb
commit
7056772066
4
index.js
4
index.js
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user