summary refs log tree commit diff
path: root/contexts.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-12 11:15:44 -0400
committerJune McEnroe <june@causal.agency>2020-07-12 11:15:44 -0400
commit160a24738a9821568cb422d69f169f5353d8b22c (patch)
tree3ca1011fd9a6ece311995de0a4bd1224c30cad60 /contexts.c
parentSet messages to break lines anywhere if need be (diff)
downloadscooper-160a24738a9821568cb422d69f169f5353d8b22c.tar.gz
scooper-160a24738a9821568cb422d69f169f5353d8b22c.zip
Clean up page error handling
Diffstat (limited to 'contexts.c')
-rw-r--r--contexts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contexts.c b/contexts.c
index 39974bb..04b44ac 100644
--- a/contexts.c
+++ b/contexts.c
@@ -105,8 +105,8 @@ enum kcgi_err pageContexts(struct kreq *req) {
 			|| khtml_puts(&html, context)
 			|| khtml_closeelem(&html, 2);
 		free(href);
-		if (error) break;
+		if (error) return error;
 	}
 	if (result != SQLITE_DONE) errx(EX_SOFTWARE, "%s", sqlite3_errmsg(db));
-	return error || htmlFooter(&html) || khtml_close(&html);
+	return htmlFooter(&html) || khtml_close(&html);
 }