Improve error reporting
[project/jsonpath.git] / ast.h
diff --git a/ast.h b/ast.h
index c2d6f2b..ec1f55c 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -31,8 +31,8 @@ struct jp_opcode {
 struct jp_state {
        struct jp_opcode *pool;
        struct jp_opcode *path;
-       char *error;
-       int erroff;
+       int error_pos;
+       int error_code;
        int off;
 };