From 35dcf0724267fcae0e34dd3742cb6636e9d156d2 Mon Sep 17 00:00:00 2001 From: naveenpaul1 Date: Thu, 15 Feb 2024 18:52:50 +0530 Subject: [PATCH] NSFS | NC | CLI | account missing name in error message Signed-off-by: naveenpaul1 --- src/cmd/manage_nsfs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/manage_nsfs.js b/src/cmd/manage_nsfs.js index 4318de4e19..0213a5c6f4 100644 --- a/src/cmd/manage_nsfs.js +++ b/src/cmd/manage_nsfs.js @@ -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);