Skip to content

Commit

Permalink
lxc/launch: avoid fmt.Sprintf() as it is slow
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jan 29, 2025
1 parent 2bd58d1 commit 8c930ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxc/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (c *cmdLaunch) run(cmd *cobra.Command, args []string) error {
progress.Done("")
prettyName := name
if remote != "" {
prettyName = fmt.Sprintf("%s:%s", remote, name)
prettyName = remote + ":" + name
}

return fmt.Errorf("%s\n"+i18n.G("Try `lxc info --show-log %s` for more info"), err, prettyName)
Expand Down

0 comments on commit 8c930ae

Please sign in to comment.