Correction and my_error

Corrected the return value of print_page and renamed it to get_page
Added the my_error function that enables error messages in the browser