Project

General

Profile

Bug #5193

pktool's errors are awful

Added by Rich Lowe about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
2014-09-25
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

In wondering something just now, I ran 'pktool list', which asked me for a PIN I don't know. I hit return and it said (in full):

% pktool list
Enter PIN for Sun Software PKCS#11 softtoken: 

Error listing objects:
keystore error: CKR_PIN_LEN_RANGE
libkmf error: KMF_ERR_AUTH_FAILED

stringifying error defines is not how nice people provide user-visible error messages, they should be sentences that describe what's wrong (this is presumably true for most errors pktool reports?)

Also available in: Atom PDF