Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit df56d88

Browse files
edaenasamiyaakhtar
authored andcommitted
Fix error handling for deployment validate (#81)
1 parent 978116f commit df56d88

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/commands/deployment/validate.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ export const validateCommandDecorator = (command: commander.Command): void => {
1313
.alias("v")
1414
.description("Validate the configuration and storage account are correct.")
1515
.action(async () => {
16-
await isValidConfig();
17-
await isValidStorageAccount();
16+
const isValid = await isValidConfig();
17+
18+
if (isValid) {
19+
await isValidStorageAccount();
20+
}
1821
});
1922
};
2023

0 commit comments

Comments
 (0)