From 3e968e6a3020ba5e0aa7dbde5cb5b5932dfa73f2 Mon Sep 17 00:00:00 2001 From: Dominic Rubas Date: Tue, 10 Sep 2024 10:01:26 +0200 Subject: [PATCH] Standardize phone number error messages for consistency - Reworded 'not_a_number' error for clarity and consistency - Adjusted 'too_short_after_idd' message to match overall style --- lib/ex_phone_number/constants/error_messages.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ex_phone_number/constants/error_messages.ex b/lib/ex_phone_number/constants/error_messages.ex index e4482e0..e621f76 100644 --- a/lib/ex_phone_number/constants/error_messages.ex +++ b/lib/ex_phone_number/constants/error_messages.ex @@ -3,9 +3,9 @@ defmodule ExPhoneNumber.Constants.ErrorMessages do def invalid_country_code(), do: "Invalid country calling code" - def not_a_number(), do: "The string supplied did not seem to be a phone number" + def not_a_number(), do: "The string supplied is not a valid phone number" - def too_short_after_idd(), do: "Phone number too short after IDD" + def too_short_after_idd(), do: "The phone number is too short after IDD" def too_short_nsn(), do: "The string supplied is too short to be a phone number"