summaryrefslogtreecommitdiff
path: root/navit/map/textfile/textfile.c
diff options
context:
space:
mode:
authorkorrosa <korrosa@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-09-29 22:20:42 +0000
committerkorrosa <korrosa@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-09-29 22:20:42 +0000
commit1e1009ccbcbb80b6e03ef06756267f4f65105dcc (patch)
tree47dd253d269038fddd2c7317af3545b6be0d8465 /navit/map/textfile/textfile.c
parent7c7b1e61219a0ca49fd4b27d6651118fcbb10fb9 (diff)
downloadnavit-1e1009ccbcbb80b6e03ef06756267f4f65105dcc.tar.gz
Add:gui/internal:Insert new "Former destinations" menu entry in "Actions". Closes #943|Great work sleske!
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4801 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/map/textfile/textfile.c')
-rw-r--r--navit/map/textfile/textfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/map/textfile/textfile.c b/navit/map/textfile/textfile.c
index 94102fefd..cbcef0747 100644
--- a/navit/map/textfile/textfile.c
+++ b/navit/map/textfile/textfile.c
@@ -20,6 +20,7 @@
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
+#include <errno.h>
#include <string.h>
#include <math.h>
#include "config.h"
@@ -49,6 +50,7 @@ get_line(struct map_rect_priv *mr)
mr->lastlen=strlen(mr->line)+1;
if (strlen(mr->line) >= SIZE-1)
printf("line too long\n");
+ dbg(1,"read textfile line: %s\n", mr->line);
}
}
@@ -205,7 +207,7 @@ map_rect_new_textfile(struct map_priv *map, struct map_selection *sel)
mr->f=fopen(map->filename, "r");
}
if(!mr->f) {
- printf("map_rect_new_textfile unable to open textfile %s\n",map->filename);
+ printf("map_rect_new_textfile unable to open textfile %s. Error: %s\n",map->filename, strerror(errno));
}
get_line(mr);
return mr;