diff options
Diffstat (limited to '')
-rw-r--r-- | events.c | 4 |
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); } |