added print error to error.html