diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2008-11-28 17:19:17 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2008-11-28 17:19:17 +0000 |
commit | 6e7958785096806b3ffa60a4937642d713a051f2 (patch) | |
tree | b069139d0627b83ade87c47391eae0e29172c863 /json-glib/json-node.c | |
parent | a5bea353dead0bd69f9664df86050fc829a2dcd5 (diff) | |
download | json-glib-6e7958785096806b3ffa60a4937642d713a051f2.tar.gz |
Display the filename inside error messages
Instead of just relaying the line number both when parsing files
and memory buffers, JsonParser should also print out the file name
in case it is available.
The error message format should be make-like and emacs-friendly,
that is:
filename:line_number: error message
so that editors and development environments can parse the errors
easily.
This commit adds the filename string, and a boolean flag for checking
whether the filename is set, inside the JsonParser private data
structure. The boolean flag is checked inside the JsonScanner error
handler when populating the GError or when printing the warning
directly on stderr.
Diffstat (limited to 'json-glib/json-node.c')
0 files changed, 0 insertions, 0 deletions