diff options
Diffstat (limited to 'lsp.c')
-rw-r--r-- | lsp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); +} |