[geocode-glib] server: Remove unnecessary error messages



commit 901b9dfae586d28ce20687c26ca59884719ce2e1
Author: Satabdi Das <satabdidas gmail com>
Date:   Wed Jan 30 12:27:04 2013 +0530

    server: Remove unnecessary error messages

 geocode-glib/geocode-ip-server/geoip-lookup.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/geocode-glib/geocode-ip-server/geoip-lookup.c b/geocode-glib/geocode-ip-server/geoip-lookup.c
index 00358b1..8dc1030 100644
--- a/geocode-glib/geocode-ip-server/geoip-lookup.c
+++ b/geocode-glib/geocode-ip-server/geoip-lookup.c
@@ -9,16 +9,12 @@
 static const char *attribution_text = "This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com\n";;
 
 enum ERROR_CODES {
-        PARSE_ERR = 0,
-        INVALID_DATA_ERR,
-        INVALID_IP_ADDRESS_ERR,
+        INVALID_IP_ADDRESS_ERR = 0,
         INVALID_ENTRY_ERR,
         DATABASE_ERR
 };
 static char *error_message_array [] = {
-        "Can not parse the input",
-        "Invalid data",
-        "Invalid IP address format",
+        "Invalid IP address input",
         "Can not find the IP address in the database",
         "Can not open the GeoLiteCity Binary database. Set GEOIP_DATABASE_PATH env variable."
 };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]