Adds error logging for Angular errors.