summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
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);
+}