Skip to content

Commit

Permalink
[DEV-2718] Merging component directory error messages into one
Browse files Browse the repository at this point in the history
  • Loading branch information
codercr committed Feb 6, 2025
1 parent 7d202f6 commit 6e58be8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ var docsCmd = &cobra.Command{
// Construct the full path to the Terraform component by combining the Atmos base path, Terraform base path, and component name
componentPath := filepath.Join(atmosConfig.BasePath, atmosConfig.Components.Terraform.BasePath, info.Component)
componentPathExists, err := u.IsDirectory(componentPath)
if err != nil {
u.LogErrorAndExit(err)
}
if !componentPathExists {
if err != nil || !componentPathExists {
u.LogErrorAndExit(fmt.Errorf("Component '%s' not found in path: '%s'", info.Component, componentPath))
}

Expand Down

0 comments on commit 6e58be8

Please sign in to comment.