Skip to content

Commit

Permalink
Merge pull request #7823 from naveenpaul1/nsfs_missing_acc_name
Browse files Browse the repository at this point in the history
NSFS | NC | CLI | account missing name in error message
  • Loading branch information
naveenpaul1 authored Feb 16, 2024
2 parents 3fb4ab3 + 35dcf07 commit 216c0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/manage_nsfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ async function add_account(data) {
const event_arg = data.name ? data.name : access_key;
if (name_exists || access_key_exists) {
const err_code = name_exists ? ManageCLIError.AccountNameAlreadyExists : ManageCLIError.AccountAccessKeyAlreadyExists;
throw_cli_error(err_code, '', {account: event_arg});
throw_cli_error(err_code, event_arg, {account: event_arg});
}
data._id = mongo_utils.mongoObjectId();
data = JSON.stringify(data);
Expand Down

0 comments on commit 216c0ca

Please sign in to comment.