fix(emacs/lean-server): recognize error messages
This commit is contained in:
parent
47e6fd091f
commit
3833a60b7c
1 changed files with 2 additions and 2 deletions
|
|
@ -88,8 +88,8 @@
|
|||
(lean-debug "server=> %s" answer)
|
||||
(let* ((json-object-type 'plist)
|
||||
(response (json-read-from-string answer)))
|
||||
(if (equal (plist-get 'response response) "error")
|
||||
(progn (message "error: %s" (plist-get 'message response))
|
||||
(if (equal (plist-get response :response) "error")
|
||||
(progn (message "error: %s" (plist-get response :message))
|
||||
(if error-cb (apply error-cb :allow-other-keys t response)))
|
||||
(if cb (apply cb :allow-other-keys t response))))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue