Skip to content

Commit

Permalink
fix: correct jwt error when reading private key (#3843)
Browse files Browse the repository at this point in the history
Signed-off-by: Farshid Tavakolizadeh <farshid.tavakolizadeh@canonical.com>
  • Loading branch information
farshidtz authored Dec 13, 2021
1 parent 1e57bbc commit 1876cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/security/config/command/proxy/jwt/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (c *cmd) Execute() (int, error) {

bytes, err := os.ReadFile(c.privateKeyPath)
if err != nil {
return interfaces.StatusCodeExitWithError, fmt.Errorf("Could read private key from file %s: %w", c.privateKeyPath, err)
return interfaces.StatusCodeExitWithError, fmt.Errorf("Could not read private key from file %s: %w", c.privateKeyPath, err)
}

var signingMethod jwt.SigningMethod
Expand Down

0 comments on commit 1876cd1

Please sign in to comment.