Add error handle for the `pages` build task. Closes #25