Initial working version of the post-update hook
Complete error reporting for the post-update hook