[Date Index] [Thread Index] [Author Index]
Re: immediate abort at error messages
Marcus Stollsteimer wrote: > Hi group, > > I recently learned that there is a way to immediately abort > when an error occurs in the middle of a cell, so that Mathematica > does not try to evaluate the subsequent expressions with > possibly bad input: > > with > > $Messages:=Abort > > (see message <2430df44.0411240157.4d06479a at posting.google.com>) > > but now, when an error occurs, Mathematica aborts without any message... > it would be useful to still see the error message, > is there a way to do this (display message, then abort)? > > Best regards, > Marcus > Marcus, The reason you no longer see error messages is because $Messages defines where to send output and with the code above you are supressing the stdout. Try using: $Messages := (OutputStream["stdout", 1]; Abort;) -- Igor Antonio Wolfram Research, Inc. http://www.wolfram.com To email me personally, remove the dash.