summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2024-12-07 20:38:11 -0500
committerpommicket <pommicket@gmail.com>2024-12-07 20:38:11 -0500
commitbbe75ba8c590747e7df7664128afdf96aeb539e2 (patch)
tree40342f0fda4dbfcc02030a25dfe78d973170ab9a /lsp.c
parentb74905fcb282603f8afc45cd3f08fa8c28c83d41 (diff)
Better handling of LSP errors
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lsp.c b/lsp.c
index bb1b5e9..7de51c3 100644
--- a/lsp.c
+++ b/lsp.c
@@ -961,3 +961,7 @@ void lsp_quit(void) {
}
lsp_write_quit();
}
+
+bool lsp_response_is_error(const LSPResponse *r) {
+ return !lsp_string_is_empty(r->error);
+}