From 140df26874927794c916ea640169721f4929a51f Mon Sep 17 00:00:00 2001 From: Bhavya Sachdeva Date: Tue, 26 Mar 2024 21:04:33 +0530 Subject: [PATCH 1/2] improvement: Improve genezio addClass output --- src/commands/addClass.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/addClass.ts b/src/commands/addClass.ts index 50be01cb6..ee0834c38 100644 --- a/src/commands/addClass.ts +++ b/src/commands/addClass.ts @@ -40,7 +40,9 @@ export async function addClassCommand(classPath: string, classType: string) { const classExtension = className.split(".").pop(); if (!classExtension || className.split(".").length < 2) { - throw new UserError("Please provide a class name with a valid class extension."); + throw new UserError( + "Please provide a class name with a valid class extension (.ts, .js, or .dart.", + ); } // check if class is supported From c4bb89d1f028079aae445fc17b3b8d642f34e418 Mon Sep 17 00:00:00 2001 From: Bhavya Sachdeva Date: Wed, 10 Apr 2024 12:18:23 +0530 Subject: [PATCH 2/2] improvement: Improve genezio addClass output --- src/commands/addClass.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/addClass.ts b/src/commands/addClass.ts index ee0834c38..3d921b0db 100644 --- a/src/commands/addClass.ts +++ b/src/commands/addClass.ts @@ -41,7 +41,7 @@ export async function addClassCommand(classPath: string, classType: string) { if (!classExtension || className.split(".").length < 2) { throw new UserError( - "Please provide a class name with a valid class extension (.ts, .js, or .dart.", + `Please provide a class name with a valid class extension. Currently supporting:${supportedExtensionsString}`, ); }