catch errors during Makefile step