More error logging

rebar throws away some error messages, e.g. the ones generated if the yecc compiler is broken.