Add glfw error callback to code examples