Update shader class to output error messages if it fails to compile