Implement error handling for OpenGL based on the tutorial in this video https://www.youtube.com/watch?v=FBbPWSOQ0-w .