diff options
-rw-r--r-- | src/treesit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/treesit.c b/src/treesit.c index 775f823fb3e..eb323e6360c 100644 --- a/src/treesit.c +++ b/src/treesit.c @@ -1727,10 +1727,11 @@ query. */) &error_offset, &error_type); if (lisp_query == NULL) { - xsignal2 (Qtreesit_query_error, + xsignal3 (Qtreesit_query_error, build_string (ts_query_error_to_string (error_type)), - make_fixnum (error_offset + 1)); + make_fixnum (error_offset + 1), + build_pure_c_string("Debug the query with `treesit-query-validate'")); } /* We don't need need to free TS_QUERY and CURSOR, they are stored in a lisp object, which is tracked by gc. */ |