diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-09-06 23:27:47 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-09-06 23:27:47 +0200 |
commit | 9fa42beddc5e1f469ddf276a0715f2de82f51b6b (patch) | |
tree | a0e931fbab685c91e181c44e8531a4f9c034b26d /src/tool_urlglob.h | |
parent | d6cda9e8ababe633f4b0b58776b1a9c4534e8095 (diff) | |
download | curl-9fa42beddc5e1f469ddf276a0715f2de82f51b6b.tar.gz |
urlglob: improved error messages and column number on bad use
Introduce a convenience macro and keep of the column better so that it
can point out the offending column better.
Updated test 75 accordingly.
Diffstat (limited to 'src/tool_urlglob.h')
-rw-r--r-- | src/tool_urlglob.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool_urlglob.h b/src/tool_urlglob.h index e1e9c6384..9fa6f83b0 100644 --- a/src/tool_urlglob.h +++ b/src/tool_urlglob.h @@ -64,7 +64,8 @@ typedef struct { size_t urllen; char *glob_buffer; char beenhere; - char errormsg[80]; /* error message buffer */ + const char *error; /* error message */ + size_t pos; /* column position of error or 0 */ } URLGlob; int glob_url(URLGlob**, char*, unsigned long *, FILE *); |