if (!state || state->error)
{
- fprintf(stderr, "In expression '%s': %s\n",
- expr, state ? state->error : "Out of memory");
+ fprintf(stderr, "Syntax error near {%s}: %s\n",
+ state ? expr + state->erroff : expr,
+ state ? state->error : "Out of memory");
goto out;
}