Skip to content

Commit

Permalink
Make sure error message ends with a newline
Browse files Browse the repository at this point in the history
  • Loading branch information
kommendorkapten committed Sep 15, 2023
1 parent 72ccf94 commit 492f744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tuf/add_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func cmdAddKey(args *docopt.Args, repo *tuf.Repo) error {
string(data.KeySchemeRSASSA_PSS_SHA256):
keyScheme = data.KeyScheme(t)
default:
fmt.Fprintf(os.Stderr, "tuf: key schema %s not recognised", t)
fmt.Fprintf(os.Stderr, "tuf: key schema %s not recognised\n", t)
return nil
}
f := args.String["--public-key"]
Expand Down Expand Up @@ -71,7 +71,7 @@ func cmdAddKey(args *docopt.Args, repo *tuf.Repo) error {
return err
}
for _, id := range keyids {
fmt.Fprintf(os.Stdout, "Add key with ID %s", id)
fmt.Fprintf(os.Stdout, "Add key with ID %s\n", id)
}
return nil
}

0 comments on commit 492f744

Please sign in to comment.