summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-08 11:26:03 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-08 11:28:23 -0800
commitd9be07670c2a7e3d54b6defb5ce5334b41ae1d90 (patch)
treef44c45c7c2f0ca61427a74d488f098b23e7fbaf0 /dive.h
parent77664e715026c8c587b6a9c60b774ea31d5e75d5 (diff)
downloadsubsurface-d9be07670c2a7e3d54b6defb5ce5334b41ae1d90.tar.gz
Don't ignore when we can't parse a file
We are quite inconsistent when it comes to reporting back errors. One case where this caused somewhat unexpected behavior was when the user would try to open a .csv file by passing it as command line argument. The file was silently ignored, but treated as if it had been opened successfully. Now we issue a somewhat reasonable error message. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 95f4d6f68..f67c7368b 100644
--- a/dive.h
+++ b/dive.h
@@ -619,7 +619,7 @@ struct dive *find_dive_n_near(timestamp_t when, int n, timestamp_t offset);
extern int match_one_dc(struct divecomputer *a, struct divecomputer *b);
extern void parse_xml_init(void);
-extern void parse_xml_buffer(const char *url, const char *buf, int size, struct dive_table *table, const char **params);
+extern int parse_xml_buffer(const char *url, const char *buf, int size, struct dive_table *table, const char **params);
extern void parse_xml_exit(void);
extern void set_filename(const char *filename, bool force);