try catch gl error