Skip to content

Commit

Permalink
Adjust error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
codercr committed Feb 6, 2025
1 parent 6702769 commit fe99e2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var docsCmd = &cobra.Command{

readmeContent, err := os.ReadFile(readmePath)
if err != nil {
u.LogErrorAndExit(err)
u.LogErrorAndExit(fmt.Errorf("Loading README file for component: %s", info.Component))
}

r, err := glamour.NewTermRenderer(
Expand All @@ -95,7 +95,7 @@ var docsCmd = &cobra.Command{

componentDocs, err := r.Render(string(readmeContent))
if err != nil {
u.LogErrorAndExit(err)
u.LogErrorAndExit(fmt.Errorf("failed to render markdown: %w", err))
}

pager := atmosConfig.Settings.Terminal.Pager
Expand Down Expand Up @@ -129,7 +129,7 @@ var docsCmd = &cobra.Command{
}

if err != nil {
u.LogErrorAndExit(err)
u.LogErrorAndExit(fmt.Errorf("failed to open default browser: %w", err))
}
}

Expand Down

0 comments on commit fe99e2b

Please sign in to comment.