Skip to content

Commit 35dcf07

Browse files
committed
NSFS | NC | CLI | account missing name in error message
Signed-off-by: naveenpaul1 <napaul@redhat.com>
1 parent 3fb4ab3 commit 35dcf07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/manage_nsfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ async function add_account(data) {
458458
const event_arg = data.name ? data.name : access_key;
459459
if (name_exists || access_key_exists) {
460460
const err_code = name_exists ? ManageCLIError.AccountNameAlreadyExists : ManageCLIError.AccountAccessKeyAlreadyExists;
461-
throw_cli_error(err_code, '', {account: event_arg});
461+
throw_cli_error(err_code, event_arg, {account: event_arg});
462462
}
463463
data._id = mongo_utils.mongoObjectId();
464464
data = JSON.stringify(data);

0 commit comments

Comments
 (0)