summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-08 11:56:30 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-08 11:56:30 +0100
commit24ee48743e86fb2f780e18359ed73996f569df70 (patch)
treec5ed7c185cbd9b9ff194a5c27e37ff438501efad /elisp
parentbe3be2b56af17f8845adf651240aef6b10bd0acc (diff)
downloadgeiser-24ee48743e86fb2f780e18359ed73996f569df70.tar.gz
geiser-24ee48743e86fb2f780e18359ed73996f569df70.tar.bz2
Better error presentation.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-eval.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/elisp/geiser-eval.el b/elisp/geiser-eval.el
index 74c9b29..8466a36 100644
--- a/elisp/geiser-eval.el
+++ b/elisp/geiser-eval.el
@@ -104,8 +104,13 @@
(defsubst geiser-eval--retort-p (ret)
(and (listp ret) (or (assoc 'error ret) (assoc 'result ret))))
-(defsubst geiser-eval--retort-error (ret) (cdr (assoc 'error ret)))
(defsubst geiser-eval--retort-result (ret) (cdr (assoc 'result ret)))
+(defsubst geiser-eval--retort-error (ret) (cdr (assoc 'error ret)))
+
+(defsubst geiser-eval--error-key (err) (cdr (assoc 'key err)))
+(defsubst geiser-eval--error-subr (err) (cdr (assoc 'subr err)))
+(defsubst geiser-eval--error-msg (err) (cdr (assoc 'msg err)))
+(defsubst geiser-eval--error-rest (err) (cdr (assoc 'rest err)))
(provide 'geiser-eval)