[PATCH 20/71] lib: Support printing an error string