[libgweather] GWeatherLocation: Warn when coordinates couldn't be parsed



commit 93c26a6ecb1522641f07f86ab9c2e0586c595921
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 6 21:34:01 2017 +0100

    GWeatherLocation: Warn when coordinates couldn't be parsed
    
    So that those can be fixed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791323

 libgweather/gweather-location.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 82d0295..e5e28dc 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -217,6 +217,8 @@ location_new_from_xml (GWeatherParser *parser, GWeatherLocationLevel level,
                goto error_out;
            if (parse_coordinates (value, &loc->latitude, &loc->longitude))
                loc->latlon_valid = TRUE;
+           else
+               g_warning ("Coordinates could not be parsed: '%s'", value);
            xmlFree (value);
        } else if (!strcmp (tagname, "zone") && !loc->forecast_zone) {
            value = _gweather_parser_get_value (parser);


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