Improve autoload error reporting
* src/eval.c (Fautoload_do_load): Include the absolute file name in the error message.
This commit is contained in:
committed by
Eli Zaretskii
parent
86bec41906
commit
e5d0efe8fc
@@ -1988,7 +1988,8 @@ it defines a macro. */)
|
||||
Lisp_Object fun = Findirect_function (funname, Qnil);
|
||||
|
||||
if (!NILP (Fequal (fun, fundef)))
|
||||
error ("Autoloading failed to define function %s",
|
||||
error ("Autoloading file %s failed to define function %s",
|
||||
SDATA (Fcar (Fcar (Vload_history))),
|
||||
SDATA (SYMBOL_NAME (funname)));
|
||||
else
|
||||
return fun;
|
||||
|
||||
Reference in New Issue
Block a user