From b4221f255f068ae7c47aecad62301e8ad12b5d22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Mon, 13 Jun 2016 20:45:23 +0200 Subject: [PATCH] fix: more better error messages in CATS-API Change-Id: I6f6eb04aa7a2160bc9e36c0dd75f2beb81fb8323 --- src/org/cacert/gigi/api/CATSImport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/cacert/gigi/api/CATSImport.java b/src/org/cacert/gigi/api/CATSImport.java index 69feb299..c5745d68 100644 --- a/src/org/cacert/gigi/api/CATSImport.java +++ b/src/org/cacert/gigi/api/CATSImport.java @@ -30,7 +30,7 @@ public class CATSImport extends APIPoint { String testType = req.getParameter("variant"); String date = req.getParameter("date"); if (target == null || testType == null || date == null) { - resp.sendError(500, "Error, requires serial, variant and date"); + resp.sendError(500, "Error, requires mid, variant and date"); return; } int id; @@ -42,7 +42,7 @@ public class CATSImport extends APIPoint { } CertificateOwner o = CertificateOwner.getById(id); if ( !(o instanceof User)) { - resp.sendError(500, "Error, requires valid serial"); + resp.sendError(500, "Error, requires valid userid"); return; } System.out.println("CATS: " + target + ": " + testType); -- 2.39.2