aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/print.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c
index 1943ed4082f..2ba860b857c 100644
--- a/src/print.c
+++ b/src/print.c
@@ -888,6 +888,16 @@ print_error_message (data, stream)
888 tail = Fcdr_safe (data); 888 tail = Fcdr_safe (data);
889 GCPRO1 (tail); 889 GCPRO1 (tail);
890 890
891 /* If we know from where the error was signaled, show it in
892 *Messages*. */
893 if (!NILP (Vsignaling_function) && SYMBOLP (Vsignaling_function))
894 {
895 char *name = XSYMBOL (Vsignaling_function)->name->data;
896 message_dolog (name, strlen (name), 0, 0);
897 message_dolog (": ", 2, 0, 0);
898 Vsignaling_function = Qnil;
899 }
900
891 /* For file-error, make error message by concatenating 901 /* For file-error, make error message by concatenating
892 all the data items. They are all strings. */ 902 all the data items. They are all strings. */
893 if (!NILP (file_error) && CONSP (tail)) 903 if (!NILP (file_error) && CONSP (tail))