|
1 | 1 | const errors = { |
2 | | - NOT_EMPTY: "{value} cannot be empty.", |
3 | | - INVALID_APP_ID: "Please enter a valid app UID.", |
| 2 | + NOT_EMPTY: "{value} is required and cannot be empty.", |
| 3 | + INVALID_APP_ID: "Enter a valid app UID.", |
4 | 4 | ORG_UID_NOT_FOUND: |
5 | 5 | "Organization UID not found. Please enter a valid organization UID.", |
6 | | - BASE_URL_EMPTY: "Developer Hub URL cannot be empty.", |
7 | | - INVALID_ORG_UID: "Please enter a valid organization UID.", |
| 6 | + BASE_URL_EMPTY: "Developer Hub URL is required.", |
| 7 | + INVALID_ORG_UID: "Enter a valid organization UID.", |
8 | 8 | PATH_NOT_FOUND: |
9 | | - "Failed to locate the provided path '{path}'. Please enter a valid path.", |
| 9 | + "Path {path} not found. Enter a valid path.", |
10 | 10 | INVALID_NAME: |
11 | | - "Please enter a valid name that is {min} to {max} characters long.", |
| 11 | + "Name must be between {min} and {max} characters.", |
12 | 12 | FILE_GENERATION_FAILURE: |
13 | | - "Failed to generate the file! Please try running the command again.", |
14 | | - APP_CREATION_FAILURE: "App could not be registered on Developer Hub.", |
| 13 | + "File generation failed. Try running the command again.", |
| 14 | + APP_CREATION_FAILURE: "Failed to register app on Developer Hub.", |
15 | 15 | APP_UID_NOT_MATCH: |
16 | | - "Provided app UID is not matching with the app manifest.json app UID", |
| 16 | + "App UID doesn't match the value in manifest.json.", |
17 | 17 | APP_CREATION_CONSTRAINT_FAILURE: |
18 | | - "App could not be registered. Please go through the constraints on the app name and try running the command again.", |
| 18 | + "App registration failed. Check the name constraints and try again.", |
19 | 19 | APP_CREATE_FAILURE_AND_ROLLBACK: |
20 | | - "App creation should fail and rollback", |
| 20 | + "App creation failed. Changes have been rolled back.", |
21 | 21 | APP_INVALID_ORG: |
22 | | - "App could not be registered. Please verify the inputs and try again.", |
| 22 | + "App registration failed. Verify the inputs and try again.", |
23 | 23 | DUPLICATE_APP_NAME: |
24 | | - "The {appName} app already exists. Please create an app with a different name.", |
| 24 | + "App {appName} already exists. Use a different name.", |
25 | 25 | INVALID_URL: |
26 | | - "Please enter a valid URL. The URL should start with http:// or https://", |
| 26 | + "Enter a valid URL starting with http:// or https://.", |
27 | 27 | }; |
28 | 28 |
|
29 | 29 | const commonMsg = { |
30 | 30 | CONFIG: "Path of the external config", |
31 | 31 | MAX_RETRY_LIMIT: "Maximum retry limit reached.", |
32 | | - MAX_RETRY_LIMIT_WARN: "warn: Maximum retry limit reached.\n", |
| 32 | + MAX_RETRY_LIMIT_WARN: "Warning: Retry limit reached.", |
33 | 33 | PROVIDE_ORG_UID: "Provide the organization UID to fetch the app details for the operation.", |
34 | 34 | CURRENT_WORKING_DIR: "Current working directory.", |
35 | 35 | SKIP_CONFIRMATION: "Use this flag to skip the confirmation.", |
36 | 36 | DEVELOPER_HUB_URL_PROMPT: |
37 | 37 | "Enter the Developer Hub Base URL for the {name} region: ", |
38 | 38 | APP_UID: "Provide the app UID of an existing app.", |
39 | 39 | APP_TYPE_DESCRIPTION: "Type of app", |
40 | | - CONTACT_SUPPORT: "Please contact the support team.", |
| 40 | + CONTACT_SUPPORT: "Contact the support team for help.", |
41 | 41 | STACK_API_KEY: "API key of the stack where the app operation is to be performed.", |
42 | 42 | USER_TERMINATION: "Process terminated by the user.", |
43 | | - CLI_APP_CLI_LOGIN_FAILED: 'You are not logged in. Please login with command $ csdx auth:login' |
| 43 | + CLI_APP_CLI_LOGIN_FAILED: "You're not logged in. Run $ csdx auth:login to continue." |
44 | 44 | }; |
45 | 45 |
|
46 | 46 | const appCreate = { |
@@ -130,7 +130,7 @@ const deployAppMsg = { |
130 | 130 | HOSTING_TYPE: "Choose a valid Hosting Type.", |
131 | 131 | CONFIG_FILE: "[optional] Please enter the path of the config file.", |
132 | 132 | APP_UPDATE_TERMINATION_MSG: "The app is already connected to the Launch project. Skipping the app hosting updates process.", |
133 | | - DISCONNECT_PROJECT: "Are you sure you wan to disconnect the Launch project?", |
| 133 | + DISCONNECT_PROJECT: "Disconnect the Launch project? This action can't be undone.", |
134 | 134 | PROJECT_NOT_FOUND: "We couldn't find the project. Please enter a valid project name.", |
135 | 135 | PROJECT_NAME_CONFLICT_FAILED: "Unable to resolve the project name conflict." |
136 | 136 | } |
|
0 commit comments