From 7e7fd3010b73b45369328924fe5d9734f20161de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Przemys=C5=82aw=20Wojnowski?= Date: Tue, 28 Apr 2015 18:13:18 +0200 Subject: [PATCH] ; Add class name to error message * lisp/emacs-lisp/eieio-core.el (eieio-oref): Add class name to error message to ease finding offending code. --- lisp/emacs-lisp/eieio-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/eieio-core.el b/lisp/emacs-lisp/eieio-core.el index 92d7234bc73..bf3f44206c4 100644 --- a/lisp/emacs-lisp/eieio-core.el +++ b/lisp/emacs-lisp/eieio-core.el @@ -730,7 +730,7 @@ Argument FN is the function calling this verifier." (cl-check-type slot symbol) (cl-check-type obj (or eieio-object class)) (let* ((class (cond ((symbolp obj) - (error "eieio-oref called on a class!") + (error "eieio-oref called on a class: %s" obj) (let ((c (eieio--class-v obj))) (if (eieio--class-p c) (eieio-class-un-autoload obj)) c)) -- 2.39.2