Skip to content

Commit

Permalink
reformat the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
medmes committed Nov 28, 2024
1 parent ab6a91a commit 86c11d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/scaffold/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (opts Options) validateDirectory() error {
fileInfo, err := os.Stat(opts.Directory)
if err != nil {
if errors.Is(err, os.ErrNotExist) {
return fmt.Errorf("directory %s does not exist: %w:", opts.Directory, commonerrors.ErrInvalidOption)
return fmt.Errorf("directory %s does not exist: %w", opts.Directory, commonerrors.ErrInvalidOption)
}
return fmt.Errorf("failed to get directory info %s: %w: %w", opts.Directory, commonerrors.ErrInvalidOption, err)
}
Expand Down

0 comments on commit 86c11d6

Please sign in to comment.