Improve error messages for g-ir-compiler
Submitted by David Schleef
Link to original bug (#667083)
Description
This has been a general problem for some time, but I'm just getting around to complaining about it:
/usr/bin/g-ir-compiler --includedir=. --includedir=. Gst-0.10.gir -o Gst-0.10.typelib
** ERROR **: Invalid typelib for module 'Gst': In directory (Context: Bin)): Pointer type exected for tag 15 make[4]: *** [Gst-0.10.typelib] Trace/breakpoint trap
I can name several problems with this error message:
- WTF is "tag 15"?
- How is "In directory" and "(Context: Bin))" related? What is in the directory? What directory is it in?
- OMG, "Trace/breakpoint trap"?
Things that would also be nice:
- A line number for the input that generated this error.
- Not being a fatal error.
On a related note:
ds@ginger:~/gst/gstreamer/gst$ g-ir-compiler --version no input files