Skip to content

Commit

Permalink
chore: use printError
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Aug 15, 2024
1 parent 1a619ba commit 6513f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sui/operators.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { Command, Option } = require('commander');
const { Transaction } = require('@mysten/sui/transactions');
const { bcs } = require('@mysten/sui/bcs');
const { printInfo, loadConfig } = require('../common/utils');
const { printInfo, printError, loadConfig } = require('../common/utils');
const { operatorsStruct } = require('./types-utils');
const { addBaseOptions, addOptionsToCommands, parseSuiUnitAmount } = require('./cli-utils');
const { getWallet, printWalletInfo, broadcast } = require('./sign-utils');
Expand Down Expand Up @@ -194,7 +194,7 @@ async function removeCap(keypair, client, gasServiceConfig, contractConfig, args

printInfo('Capability Removed', receipt.digest);
} catch (e) {
console.log('Error', e.message);
printError('RemoveCap Error', e.message);
}
}

Expand Down

0 comments on commit 6513f8c

Please sign in to comment.