Each document namespace is provided with its own *error* function.
The default *error* function is defined as follows:
(defun *error* (msg) (princ "error: ") (princ msg) (princ) )
A VLX application running within a document namespace shares the default *error* function. Each application should redefine the current in memory *error* function or use vl-exit-with-error function to handle an error and return the environment to its previous state prior to a function with in the application being executed.