try catch build errors when watching