Suppressing error message "-- an error. To debug this try: debugmode(true); "



>
>
> Ok, now I have another question: if error() is called at some point in a
> .mac file, it prints a stack with informations of the sequence of functions
> which lead to the error, for example:
>
> Error (here there is my error message)
> #0: foo(args)(file.mac line 1236)
>
> but also #1, #2 etc. can be present, depending on the nesting of the
> functions. How to suppress the printing of these informations starting with
> #? Which part of Maxima source code controls this behavior?
>
>

Answering to myself: it is sufficient to comment the line

($backtrace 3)

to suppress the printing of the error stack.

Stefano