Correct fprintf confusion
This commit is contained in:
parent
aa0703da01
commit
2b5c6f1c73
2 changed files with 4 additions and 4 deletions
|
|
@ -96,7 +96,7 @@ func signingDates(defaultDuration time.Duration) (from, until time.Time) {
|
|||
} else {
|
||||
from, err = time.Parse(time.RFC3339, validFrom)
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, "--valid-from %s: not a valid RFC3339-format timestamp\n")
|
||||
fmt.Fprintf(os.Stderr, "--valid-from %q: not a valid RFC3339-format timestamp\n", validFrom)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
@ -105,7 +105,7 @@ func signingDates(defaultDuration time.Duration) (from, until time.Time) {
|
|||
} else {
|
||||
until, err = time.Parse(time.RFC3339, validUntil)
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, "--valid-until %s: not a valid RFC3339-format timestamp\n")
|
||||
fmt.Fprintf(os.Stderr, "--valid-until %q: not a valid RFC3339-format timestamp\n", validUntil)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue