Skip to content

Commit

Permalink
fix: Add missing newlines in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Mar 3, 2024
1 parent 1ce6b2e commit 3a0b19e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/purgecmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (c *Config) doPurge(options *doPurgeOptions) error {
case runtime.GOOS == "windows":
// On Windows the binary of a running process cannot be removed.
// Warn the user, but otherwise continue.
c.errorf("cannot purge binary (%s) on Windows", executable)
c.errorf("cannot purge binary (%s) on Windows\n", executable)
case strings.Contains(executable, "test"):
// Special case: do not purge the binary if it is a test binary created
// by go test as this will break later or concurrent tests.
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/unmanagedcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (c *Config) runUnmanagedCmd(cmd *cobra.Command, args []string, sourceState
unmanagedRelPaths := make(map[chezmoi.RelPath]struct{})
walkFunc := func(destAbsPath chezmoi.AbsPath, fileInfo fs.FileInfo, err error) error {
if err != nil {
c.errorf("%s: %v", destAbsPath, err)
c.errorf("%s: %v\n", destAbsPath, err)
if fileInfo == nil || fileInfo.IsDir() {
return fs.SkipDir
}
Expand Down

0 comments on commit 3a0b19e

Please sign in to comment.