Skip to content

Commit 11b8308

Browse files
committed
removed unwanted space in conditions
1 parent a763cbc commit 11b8308

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bin/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ async function run(argv:AnyObject) {
8282
}while(moreStack!=='No'){
8383
template = { ...app_name, language };
8484
if (stack_names !== null ) template = { ...template, Stacks: stack_names ,StackParams};
85-
if (customStacks !== null)
86-
template = { ...template, CustomStacks: customStacks };
85+
if (customStacks !== null)template = { ...template, CustomStacks: customStacks };
8786

8887
await rover_utilities.generationSAM(({template})["template"]);
8988
}

cli-main/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,10 @@ export let samValidate=function(){
534534
}
535535
})
536536
if (!response.includes(true)) {
537-
throw("improper SAM Template file")
537+
throw new Error("SAM Template error \n")
538538
}
539539
} catch (error) {
540-
throw("Not a SAM file :"+error)
540+
throw new Error("Not a SAM file or "+error)
541541
}
542542

543543
}

0 commit comments

Comments
 (0)