added error reporting to github.php

Signed-off-by: David Arendsen <davidarendsen@gmail.com>