edit file index.php

added error report