diff lisp/startup.el @ 263:727739f917cb r20-5b30

Import from CVS: tag r20-5b30
author cvs
date Mon, 13 Aug 2007 10:24:41 +0200
parents 51092a27c943
children 966663fcf606
line wrap: on
line diff
--- a/lisp/startup.el	Mon Aug 13 10:23:52 2007 +0200
+++ b/lisp/startup.el	Mon Aug 13 10:24:41 2007 +0200
@@ -651,8 +651,18 @@
 	      (load-user-init-file init-file-user)
 	      (setq init-file-had-error nil))
           (error
-           (message "Error in init file: ")
-           (display-error error nil)
+	   (message "Error in init file: %s" (error-message-string error))
+	   (display-warning 'initialization
+	     (format "\
+An error has occured while loading %s:
+
+%s
+
+To ensure normal operation, you should investigate the cause of the error
+in your initialization file and remove it.  Use the `-debug-init' option
+to XEmacs to view a complete error backtrace."
+		     user-init-file (error-message-string error))
+	     'error)
 	   (setq init-file-had-error t))))
       ;; If we can tell that the init file altered debug-on-error,
       ;; arrange to preserve the value that it set up.