Catch errors on context compile