From b3312002a5d96cd486156a711d3c1861c150b7c6 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 4 Oct 2020 13:22:23 -0400 Subject: parse: Fail if -color is passed and the colors couldn't be parsed --- ctx.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ctx.h') diff --git a/ctx.h b/ctx.h index b638e74..ec626c5 100644 --- a/ctx.h +++ b/ctx.h @@ -84,6 +84,8 @@ struct bfs_ctx { /** Color data. */ struct colors *colors; + /** The error that occurred parsing the color table, if any. */ + int colors_error; /** Colored stdout. */ CFILE *cout; /** Colored stderr. */ -- cgit v1.2.3