nicer error message for error that comes from R itself