Skip to content

Commit 5472be9

Browse files
authored
fix: correct typo 'ceritficate' to 'certificate' in error messages (#565)
1 parent 8c5d853 commit 5472be9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func tokenFromCli(cmd *cobra.Command) (storage.Token, error) {
148148
if certPath != "" {
149149
certBytes, err = os.ReadFile(certPath)
150150
if err != nil {
151-
return storage.Token{}, fmt.Errorf("failed to read ceritficate: %w", err)
151+
return storage.Token{}, fmt.Errorf("failed to read certificate: %w", err)
152152
}
153153
}
154154

internal/cmd/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func contextSetCmdFunc(cmd *cobra.Command, args []string) error {
141141
if certPath != "" {
142142
certBytes, err = os.ReadFile(certPath)
143143
if err != nil {
144-
return fmt.Errorf("failed to read ceritficate: %w", err)
144+
return fmt.Errorf("failed to read certificate: %w", err)
145145
}
146146
}
147147

0 commit comments

Comments
 (0)