From a531a1e7fbe1c85b784d040cf5ad8a03a9bad251 Mon Sep 17 00:00:00 2001 From: shridhar Date: Fri, 7 Jun 2024 21:52:51 +0530 Subject: [PATCH] Updated error messages for clarity and consistency --- cmd/otpgateway/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/otpgateway/handlers.go b/cmd/otpgateway/handlers.go index d6add3b..224fbf0 100644 --- a/cmd/otpgateway/handlers.go +++ b/cmd/otpgateway/handlers.go @@ -409,7 +409,7 @@ func handleOTPView(w http.ResponseWriter, r *http.Request) { msg = "OTP resent" if err := push(out, pro, app.constants.RootURL, app); err != nil { app.lo.Error("error sending OTP", "error", err, "provider", pro.provider.ID()) - otpErr = errors.New("error resending OTP.") + otpErr = errors.New("Error resending OTP.") } } @@ -509,7 +509,7 @@ func handleAddressView(w http.ResponseWriter, r *http.Request) { out.To = to if err := push(out, pro, app.constants.RootURL, app); err != nil { app.lo.Error("error sending OTP", "error", err, "provider", pro.provider.ID()) - msg = "error sending OTP" + msg = "Error sending OTP." } else { http.Redirect(w, r, fmt.Sprintf(uriViewOTP, out.Namespace, out.ID), http.StatusFound)