Fix incorrect string formatting directive
This commit is contained in:
parent
a52f3f0d43
commit
caf5bd5af6
@ -54,7 +54,7 @@ Example usage:
|
|||||||
|
|
||||||
decodedSecret, err := base32.StdEncoding.DecodeString(string(secretBytes))
|
decodedSecret, err := base32.StdEncoding.DecodeString(string(secretBytes))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("failed to base32 decode secret '%s': %w", secretFilePath, err)
|
log.Fatalf("failed to base32 decode secret '%s': %v", secretFilePath, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
ports, err := otphyp.GeneratePorts(decodedSecret, time.Now())
|
ports, err := otphyp.GeneratePorts(decodedSecret, time.Now())
|
||||||
|
Loading…
Reference in New Issue
Block a user