summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index ae1b945..7e4955b 100644
--- a/main.c
+++ b/main.c
@@ -22,7 +22,11 @@ main(void)
{
for (size_t i = 0; i < sizeof(pages)/sizeof(pages[0]); i++)
{
- pages[i].function(pages[i].flags);
+ if (!pages[i].function(pages[i].flags))
+ {
+ fprintf(stderr, "error generating website\n");
+ return 1;
+ }
}
return 0;
}