Update index.php

Extended error reporting