Skip to content

Commit

Permalink
snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 7, 2021
1 parent 696781d commit d57f043
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chezmoi2/cmd/helpcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (c *Config) runHelpCmd(cmd *cobra.Command, args []string) error {
return err
}
if subCmd == nil {
return fmt.Errorf("unknown command: %q", strings.Join(args, " "))
return fmt.Errorf("unknown command: %s", strings.Join(args, " "))
}
return subCmd.Help()
}
2 changes: 1 addition & 1 deletion chezmoi2/cmd/keepassxctemplatefuncs.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (c *Config) keepassxcVersion() *semver.Version {
}
c.Keepassxc.version, err = semver.NewVersion(string(bytes.TrimSpace(output)))
if err != nil {
returnTemplateError(fmt.Errorf("cannot parse version %q: %w", output, err))
returnTemplateError(fmt.Errorf("cannot parse version %s: %w", output, err))
return nil
}
return c.Keepassxc.version
Expand Down
2 changes: 1 addition & 1 deletion chezmoi2/cmd/keyringtemplatefuncs.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (c *Config) keyringTemplateFunc(service, user string) string {
}
password, err := keyring.Get(service, user)
if err != nil {
returnTemplateError(fmt.Errorf("%q %q: %w", service, user, err))
returnTemplateError(fmt.Errorf("%s %s: %w", service, user, err))
return ""
}
c.keyring.cache[key] = password
Expand Down

0 comments on commit d57f043

Please sign in to comment.