Fix:core:More descriptive error messages
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 26 Jun 2008 20:15:01 +0000 (20:15 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 26 Jun 2008 20:15:01 +0000 (20:15 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@1172 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/map.c
navit/vehicle.c

index c2eb0e7..103315a 100644 (file)
@@ -54,8 +54,10 @@ map_new(const char *type, struct attr **attrs)
 
 
        maptype_new=plugin_get_map_type(type);
-       if (! maptype_new)
+       if (! maptype_new) {
+               dbg(0,"invalid type '%s'\n", type);
                return NULL;
+       }
 
        m=g_new0(struct map, 1);
        m->active=1;
index 825f71f..2c415f3 100644 (file)
@@ -130,7 +130,7 @@ vehicle_new(struct attr **attrs)
 
        vehicletype_new = plugin_get_vehicle_type(type);
        if (!vehicletype_new) {
-               dbg(0, "invalid type\n");
+               dbg(0, "invalid type '%s'\n", type);
                return NULL;
        }
        this_ = g_new0(struct vehicle, 1);