From 8e1efa39ed2859c04de81fad3a8e6cf8d4841b6d Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Sat, 25 Oct 2025 02:17:03 -0300 Subject: [PATCH] fix: add error message for invalid cuit --- request_handler.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/request_handler.go b/request_handler.go index c47be7e..d68eca8 100644 --- a/request_handler.go +++ b/request_handler.go @@ -15,6 +15,7 @@ type CuitError struct { } const NO_SEARCH_ARG = "Sin argumento de búsqueda" +const INVALID_CUIT = "CUIT inválido" func RequestHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json") @@ -45,6 +46,8 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) { } else { errorResponse.Error = err.Error() } + } else { + errorResponse.Error = INVALID_CUIT } } }