summary refs log tree commit diff
path: root/events.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 /events.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 'events.c')
-rw-r--r--events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/events.c b/events.c
index 89da92d..e018087 100644
--- a/events.c
+++ b/events.c
@@ -180,8 +180,8 @@ enum kcgi_err pageEvents(struct kreq *req) {
 		event.target = sqlite3_column_text(events, i++);
 		event.message = sqlite3_column_text(events, i++);
 		error = htmlEvent(&html, scope, event);
-		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);
 }
tr class='logheader'>2017-08-06Add wakeJune McEnroe That payload can appear anywhere within an ethernet frame. Wake-on-LAN is funny. 2017-08-04Use $() in install.shJune McEnroe Something gave me the impression that sh did not like this, but it's specified by POSIX. 2017-08-02Create Code Tarmak 3 layoutJune McEnroe 2017-07-31Add tupJune McEnroe 2017-07-31Use designated initializer for hnel tableJune McEnroe I did not know this syntax worked! 2017-07-30Add juneJune McEnroe 2017-07-30Play nethack as ValkyrieJune McEnroe 2017-07-28Add toggle to hnelJune McEnroe 2017-07-28Install slJune McEnroe 2017-07-25Add up, supJune McEnroe 2017-07-24Autopickup ringsJune McEnroe 2017-07-24Name dogJune McEnroe 2017-07-23Add nethackrcJune McEnroe 2017-07-23Remove useless setuid in briJune McEnroe Don't you think it would be better if the setuid bit only gave you permission to do it and didn't do it for you? 2017-07-23Clean up hnel a tiny bitJune McEnroe 2017-07-21Set window size in hnelJune McEnroe 2017-07-21Add hnelJune McEnroe 2017-07-19chmod 600 in dtchJune McEnroe