summaryrefslogtreecommitdiff
path: root/client/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/main.c')
-rw-r--r--client/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/client/main.c b/client/main.c
index d87aae0..c84c650 100644
--- a/client/main.c
+++ b/client/main.c
@@ -294,7 +294,13 @@ void pipeCommand(PipeCommand command, const char *url, const char *hostname,
case PC_StoreCertificates: {
char *certs = pipe_readString(stdin);
- BankIDError error = bankid_storeCertificates(certs, hostname);
+ TokenError tokenError;
+ BankIDError error = bankid_storeCertificates(certs, hostname,
+ &tokenError);
+ if (error != BIDERR_OK) {
+ /* TODO should perhaps dump the certificate data to a file? */
+ platform_showError(tokenError);
+ }
pipe_sendInt(stdout, error);
pipe_flush(stdout);