(archiving, the lib was moved to gwion-util
A C library for displaying informative, clean and readable errors
libprettyerr
provides a simple api to nicely display error messages
for your programming language.
Backed by libtermcolor, it allows for displaying colored messages within the error.
is generated by this example file
Add the repo as a submodule and build it
git submodule add https://github.com/fennecdjay/libprettyerr
cd libprettyerr
make
Add -Ilibprettyerr/src
to your project's CFLAGS
And -Llibprettyerr -l prettyerr
to your project's LDFLAGS
You can then start using libprettyerr.
If you're unsure about usage, look at the example file