libprettyerr icon indicating copy to clipboard operation
libprettyerr copied to clipboard

A C library for displaying informative, clean and readable errors

(archiving, the lib was moved to gwion-util

libprettyerr

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

Using prettyerr in your project

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