Skip to content

Commit

Permalink
style(deploymentService): better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore03109 committed Oct 25, 2023
1 parent fc87d48 commit 9fbbd47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/services/identity/DeploymentsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ class DeploymentsService {
amplifyStagingLiteResult,
] = await this.createAmplifyAppsOnAws(repoName)
if (amplifyStagingResult.isErr()) {
logger.error(`Amplify set up error: ${amplifyStagingResult.error}`)
logger.error(
`Amplify set up error for main app: ${amplifyStagingResult.error}`
)
throw amplifyStagingResult.error
}

if (amplifyStagingLiteResult.isErr()) {
logger.error(`Amplify set up error: ${amplifyStagingLiteResult.error}`)
logger.error(
`Amplify set up error for staging-lite app: ${amplifyStagingLiteResult.error}`
)
throw amplifyStagingLiteResult.error
}

Expand Down
1 change: 0 additions & 1 deletion src/services/identity/ReposService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ export default class ReposService {
fs.rmSync(`${stgLiteDir}/.git`, { recursive: true, force: true })

// Prepare git repo

await this.simpleGit
.cwd(stgLiteDir)
.init()
Expand Down

0 comments on commit 9fbbd47

Please sign in to comment.