better error messages on page failure