mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 09:01:40 -05:00
Check status code in ein:notebooklist-url-retrieve-callback
This commit is contained in:
parent
5dc9a28e37
commit
906cb8e236
1 changed files with 3 additions and 1 deletions
|
@ -80,7 +80,9 @@
|
|||
|
||||
(defun ein:notebooklist-url-retrieve-callback (status url-or-port)
|
||||
"Called via `ein:notebooklist-open'."
|
||||
;; FIXME: check status
|
||||
(ein:aif (plist-get status :error)
|
||||
(error "Failed to connect to server '%s'. Got: %S"
|
||||
(ein:url url-or-port) it))
|
||||
(let ((data (ein:json-read)))
|
||||
(kill-buffer (current-buffer))
|
||||
(with-current-buffer (ein:notebooklist-get-buffer url-or-port)
|
||||
|
|
Loading…
Add table
Reference in a new issue